From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arthur Chunqi Li Subject: [PATCH v2 2/2] KVM : Set success rflags when emulate VMXON/VMXOFF in nested virt Date: Thu, 4 Jul 2013 15:03:33 +0800 Message-ID: <1372921413-32239-2-git-send-email-yzt356@gmail.com> References: <1372921413-32239-1-git-send-email-yzt356@gmail.com> Cc: gleb@redhat.com, pbonzini@redhat.com, jan.kiszka@web.de, Arthur Chunqi Li To: kvm@vger.kernel.org Return-path: Received: from mail-pd0-f174.google.com ([209.85.192.174]:44704 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933586Ab3GDHDw (ORCPT ); Thu, 4 Jul 2013 03:03:52 -0400 Received: by mail-pd0-f174.google.com with SMTP id 10so823719pdc.5 for ; Thu, 04 Jul 2013 00:03:52 -0700 (PDT) In-Reply-To: <1372921413-32239-1-git-send-email-yzt356@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Set rflags after successfully emulateing VMXON/VMXOFF in VMX. Signed-off-by: Arthur Chunqi Li --- 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 1764b13..423bc411 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -5651,6 +5651,7 @@ static int handle_vmon(struct kvm_vcpu *vcpu) vmx->nested.vmxon = true; skip_emulated_instruction(vcpu); + nested_vmx_succeed(vcpu); return 1; } @@ -5735,6 +5736,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; } -- 1.7.9.5