Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202374
b: refs/heads/master
c: 3e00750
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Aug 1, 2010
1 parent 47f51fd commit 69a2829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 529df65e394e30a78f2633b575fd81fa5b973e30
refs/heads/master: 3e0075094734de122e4cb09f930fa853a3c59f09
12 changes: 5 additions & 7 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -4616,15 +4616,9 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
bool req_int_win = !irqchip_in_kernel(vcpu->kvm) &&
vcpu->run->request_interrupt_window;

if (vcpu->requests)
if (vcpu->requests) {
if (kvm_check_request(KVM_REQ_MMU_RELOAD, vcpu))
kvm_mmu_unload(vcpu);

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

if (vcpu->requests) {
if (kvm_check_request(KVM_REQ_MIGRATE_TIMER, vcpu))
__kvm_migrate_timers(vcpu);
if (kvm_check_request(KVM_REQ_KVMCLOCK_UPDATE, vcpu))
Expand All @@ -4649,6 +4643,10 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
}
}

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

preempt_disable();

kvm_x86_ops->prepare_guest_switch(vcpu);
Expand Down

0 comments on commit 69a2829

Please sign in to comment.