aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorArthur Chunqi Li <yzt356@gmail.com>2013-07-04 03:03:33 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-18 06:29:27 -0400
commita25eb114d50d6e60ef586f2466c874581c31594c (patch)
treefae1da704abe3f2ef2fbc6ff9c635118378eb8c1 /arch/x86/kvm/vmx.c
parent0658fbaad809b57b8f0d4ab2c0a78bc6abde1b3e (diff)
KVM: nVMX: Set success rflags when emulate VMXON/VMXOFF in nested virt
Set rflags after successfully emulateing VMXON/VMXOFF in VMX. Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 264147129d20..2cd1be8ce384 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5667,6 +5667,7 @@ static int handle_vmon(struct kvm_vcpu *vcpu)
5667 vmx->nested.vmxon = true; 5667 vmx->nested.vmxon = true;
5668 5668
5669 skip_emulated_instruction(vcpu); 5669 skip_emulated_instruction(vcpu);
5670 nested_vmx_succeed(vcpu);
5670 return 1; 5671 return 1;
5671} 5672}
5672 5673
@@ -5751,6 +5752,7 @@ static int handle_vmoff(struct kvm_vcpu *vcpu)
5751 return 1; 5752 return 1;
5752 free_nested(to_vmx(vcpu)); 5753 free_nested(to_vmx(vcpu));
5753 skip_emulated_instruction(vcpu); 5754 skip_emulated_instruction(vcpu);
5755 nested_vmx_succeed(vcpu);
5754 return 1; 5756 return 1;
5755} 5757}
5756 5758