Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133705
b: refs/heads/master
c: 10f32d8
h: refs/heads/master
i:
  133703: 34b6d65
v: v3
  • Loading branch information
Avi Kivity committed Mar 24, 2009
1 parent 7baec32 commit eda0159
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 9fd4a3b7a412f983696b23121413a79d2132fed6
refs/heads/master: 10f32d84c750ccf8c0afb3a4ea9d4059aa3e9ffc
11 changes: 4 additions & 7 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3130,7 +3130,6 @@ static int handle_nmi_window(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
static void handle_invalid_guest_state(struct kvm_vcpu *vcpu,
struct kvm_run *kvm_run)
{
struct vcpu_vmx *vmx = to_vmx(vcpu);
int err;

preempt_enable();
Expand All @@ -3155,11 +3154,6 @@ static void handle_invalid_guest_state(struct kvm_vcpu *vcpu,

local_irq_disable();
preempt_disable();

/* Guest state should be valid now except if we need to
* emulate an MMIO */
if (guest_state_valid(vcpu))
vmx->emulation_required = 0;
}

/*
Expand Down Expand Up @@ -3208,8 +3202,11 @@ static int kvm_handle_exit(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)

/* If we need to emulate an MMIO from handle_invalid_guest_state
* we just return 0 */
if (vmx->emulation_required && emulate_invalid_guest_state)
if (vmx->emulation_required && emulate_invalid_guest_state) {
if (guest_state_valid(vcpu))
vmx->emulation_required = 0;
return 0;
}

/* Access CR3 don't cause VMExit in paging mode, so we need
* to sync with guest real CR3. */
Expand Down

0 comments on commit eda0159

Please sign in to comment.