From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] kvm, vmx: Fix lazy FPU on nested guest Date: Wed, 13 Nov 2013 18:46:47 +0100 Message-ID: <5283BB07.8000504@redhat.com> References: <20131113104533.GA14780@bertin.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , kvm@vger.kernel.org To: Anthoine Bourgeois Return-path: Received: from mail-qc0-f180.google.com ([209.85.216.180]:44805 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530Ab3KMRq4 (ORCPT ); Wed, 13 Nov 2013 12:46:56 -0500 Received: by mail-qc0-f180.google.com with SMTP id e9so453471qcy.39 for ; Wed, 13 Nov 2013 09:46:53 -0800 (PST) In-Reply-To: <20131113104533.GA14780@bertin.fr> Sender: kvm-owner@vger.kernel.org List-ID: Il 13/11/2013 11:45, Anthoine Bourgeois ha scritto: > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index 2b2fce1..e33cadf 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -6627,6 +6627,9 @@ static bool nested_vmx_exit_handled(struct > kvm_vcpu *vcpu) > return 0; > else if (is_page_fault(intr_info)) > return enable_ept; > + else if (is_no_device(intr_info) && > + !(nested_read_cr0(vmcs12) & X86_CR0_TS)) > + return 0; > return vmcs12->exception_bitmap & > (1u << (intr_info & INTR_INFO_VECTOR_MASK)); > case EXIT_REASON_EXTERNAL_INTERRUPT: > -- The whitespace in this patch is corrupted. For this time I applied it; next time however please use "git send-email". Paolo