From: Gmail Subject: Re: [PATCH] KVM: nVMX: Advertise IA32_PAT in VM exit control Date: Mon, 5 Aug 2013 17:36:55 +0800 Message-ID: References: <1375693835-10988-1-git-send-email-yzt356@gmail.com> <20130805093349.GI2258@redhat.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" , "jan.kiszka@web.de" , "pbonzini@redhat.com" To: Gleb Natapov Return-path: Received: from mail-pa0-f54.google.com ([209.85.220.54]:41010 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230Ab3HEJhJ (ORCPT ); Mon, 5 Aug 2013 05:37:09 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx1so3094588pab.27 for ; Mon, 05 Aug 2013 02:37:09 -0700 (PDT) In-Reply-To: <20130805093349.GI2258@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: > On Mon, Aug 05, 2013 at 05:10:35PM +0800, Arthur Chunqi Li wrote: >> Advertise VM_EXIT_SAVE_IA32_PAT and VM_EXIT_LOAD_IA32_PAT. >> >> Signed-off-by: Arthur Chunqi Li >> --- >> arch/x86/kvm/vmx.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c >> index 45fd70c..240f0db 100644 >> --- a/arch/x86/kvm/vmx.c >> +++ b/arch/x86/kvm/vmx.c >> @@ -2198,7 +2198,8 @@ static __init void nested_vmx_setup_ctls_msrs(void) >> #else >> nested_vmx_exit_ctls_high = 0; >> #endif >> - nested_vmx_exit_ctls_high |= VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR; >> + nested_vmx_exit_ctls_high |= VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR | >> + VM_EXIT_LOAD_IA32_PAT | VM_EXIT_SAVE_IA32_PAT; >> > You should not set those if host does not support them, otherwise > GUEST_IA32_PAT may not be available To Jan, Is this different from IA32_EFER? Arthur > > -- > Gleb.