Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307908
b: refs/heads/master
c: d8368af
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Marcelo Tosatti committed May 16, 2012
1 parent 5340524 commit bbaa7a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: c142786c6291189b5c85f53d91743e1eefbd8fe0
refs/heads/master: d8368af8b46b904def42a0f341d2f4f29001fa77
10 changes: 6 additions & 4 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -5279,10 +5279,6 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
kvm_deliver_pmi(vcpu);
}

r = kvm_mmu_reload(vcpu);
if (unlikely(r))
goto out;

if (kvm_check_request(KVM_REQ_EVENT, vcpu) || req_int_win) {
inject_pending_event(vcpu);

Expand All @@ -5298,6 +5294,12 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
}
}

r = kvm_mmu_reload(vcpu);
if (unlikely(r)) {
kvm_x86_ops->cancel_injection(vcpu);
goto out;
}

preempt_disable();

kvm_x86_ops->prepare_guest_switch(vcpu);
Expand Down

0 comments on commit bbaa7a0

Please sign in to comment.