Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144007
b: refs/heads/master
c: d24d2c1
h: refs/heads/master
i:
  144005: b5ed3df
  144003: c7eb8ee
  143999: 0dea0a9
v: v3
  • Loading branch information
Jes Sorensen authored and Avi Kivity committed Apr 22, 2009
1 parent 0b1ae06 commit f76e724
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99894a799f09cf9e28296bb16e75bd5830fd2c4e
refs/heads/master: d24d2c1cc4156102f9df9cd0425d58cabf955519
14 changes: 8 additions & 6 deletions trunk/arch/ia64/kvm/kvm-ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,20 +610,22 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
int r;

again:
preempt_disable();
local_irq_disable();

if (signal_pending(current)) {
local_irq_enable();
preempt_enable();
r = -EINTR;
kvm_run->exit_reason = KVM_EXIT_INTR;
goto out;
}

/*
* down_read() may sleep and return with interrupts enabled
*/
down_read(&vcpu->kvm->slots_lock);

preempt_disable();
local_irq_disable();

vcpu->guest_mode = 1;
kvm_guest_enter();
down_read(&vcpu->kvm->slots_lock);
r = vti_vcpu_run(vcpu, kvm_run);
if (r < 0) {
local_irq_enable();
Expand Down

0 comments on commit f76e724

Please sign in to comment.