Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72132
b: refs/heads/master
c: 0552f73
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Vivier authored and Avi Kivity committed Oct 22, 2007
1 parent 009bf08 commit 5e7a576
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 4e62417bf317504c0b85e0d7abd236f334f54eaf
refs/heads/master: 0552f73b9a81d39d50b71a5c06cf36efff80b6fd
11 changes: 10 additions & 1 deletion trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2054,12 +2054,21 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)

kvm_x86_ops->run(vcpu, kvm_run);

kvm_guest_exit();
vcpu->guest_mode = 0;
local_irq_enable();

++vcpu->stat.exits;

/*
* We must have an instruction between local_irq_enable() and
* kvm_guest_exit(), so the timer interrupt isn't delayed by
* the interrupt shadow. The stat.exits increment will do nicely.
* But we need to prevent reordering, hence this barrier():
*/
barrier();

kvm_guest_exit();

preempt_enable();

/*
Expand Down

0 comments on commit 5e7a576

Please sign in to comment.