From: Amit Shah Subject: Re: KVM: SVM: Disable Lazy FPU optimization because of regressions Date: Sun, 18 Nov 2007 23:02:59 +0530 Message-ID: <200711182302.59624.amit.shah@qumranet.com> References: <200711182244.51689.amit.shah@qumranet.com> <47407658.1010803@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Avi Kivity To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <47407658.1010803-atKUWr5tajBWk0Htik3J/w@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Sunday 18 November 2007 22:58:56 Avi Kivity wrote: > Amit Shah wrote: > > diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c > > index ea2cb83..d7c9b92 100644 > > --- a/drivers/kvm/svm.c > > +++ b/drivers/kvm/svm.c > > @@ -1600,11 +1600,11 @@ static void svm_set_cr3(struct kvm_vcpu *vcpu, > > unsigned long root) > > svm->vmcb->save.cr3 = root; > > force_new_asid(vcpu); > > > > - if (vcpu->fpu_active) { > > - svm->vmcb->control.intercept_exceptions |= (1 << NM_VECTOR); > > - svm->vmcb->save.cr0 |= X86_CR0_TS; > > - vcpu->fpu_active = 0; > > - } > > +/* if (vcpu->fpu_active) { */ > > +/* svm->vmcb->control.intercept_exceptions |= (1 << NM_VECTOR); */ > > +/* svm->vmcb->save.cr0 |= X86_CR0_TS; */ > > +/* vcpu->fpu_active = 0; */ > > +/* } */ > > } > > > > static void svm_inject_page_fault(struct kvm_vcpu *vcpu, > > Changed those into a #if 0. Those comments were unsightly. Oh, I really just let emacs do it for me.. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/