From: Paolo Bonzini Subject: Re: [PATCH v4] kvm: nVMX: Remove superfluous VMX instruction fault checks Date: Thu, 27 Apr 2017 13:25:57 +0200 Message-ID: References: <20170426155346.116970-1-jmattson@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: David Hildenbrand , Jim Mattson , kvm@vger.kernel.org Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:35254 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968497AbdD0L0B (ORCPT ); Thu, 27 Apr 2017 07:26:01 -0400 Received: by mail-wm0-f68.google.com with SMTP id d79so3894493wmi.2 for ; Thu, 27 Apr 2017 04:26:01 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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). Paolo > Reviewed-by: David Hildenbrand