From: Paolo Bonzini Subject: Re: [PATCH v4] kvm: nVMX: Remove superfluous VMX instruction fault checks Date: Thu, 27 Apr 2017 17:31:51 +0200 Message-ID: <9b5eea7b-a291-5803-6f03-b544b080af87@redhat.com> References: <20170426155346.116970-1-jmattson@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: David Hildenbrand , kvm list To: Jim Mattson Return-path: Received: from mail-wm0-f43.google.com ([74.125.82.43]:35188 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968431AbdD0Pb5 (ORCPT ); Thu, 27 Apr 2017 11:31:57 -0400 Received: by mail-wm0-f43.google.com with SMTP id w64so20192113wma.0 for ; Thu, 27 Apr 2017 08:31:57 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 27/04/2017 17:00, Jim Mattson wrote: > On Thu, Apr 27, 2017 at 4:25 AM, Paolo Bonzini wrote: >> >> >> On 27/04/2017 10:29, David Hildenbrand wrote: >>>> arch/x86/kvm/vmx.c | 55 ++++++++---------------------------------------------- >>>> 1 file changed, 8 insertions(+), 47 deletions(-) >>> Nice! So we really only have to check vmxon / pointer / features for >>> vmxon and for the others only vmxon. >> >> Still not good, CR4.VMXE has to be checked because we always run the >> guest with CR4.VMXE set (see section 23.8 in the SDM). > > Ah, yes, Of course. I fixed this up and will push the patch briefly. Paolo >> >> Paolo >> >>> Reviewed-by: David Hildenbrand >