From a25eb114d50d6e60ef586f2466c874581c31594c Mon Sep 17 00:00:00 2001 From: Arthur Chunqi Li Date: Thu, 4 Jul 2013 15:03:33 +0800 Subject: [PATCH] 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 Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 2 ++ 1 file changed, 2 insertions(+) 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) vmx->nested.vmxon = true; skip_emulated_instruction(vcpu); + nested_vmx_succeed(vcpu); return 1; } @@ -5751,6 +5752,7 @@ static int handle_vmoff(struct kvm_vcpu *vcpu) return 1; free_nested(to_vmx(vcpu)); skip_emulated_instruction(vcpu); + nested_vmx_succeed(vcpu); return 1; } -- 2.39.5