[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CY4PR12MB1768042143F29091B60BF62195A30@CY4PR12MB1768.namprd12.prod.outlook.com>
Date: Wed, 28 Mar 2018 21:12:35 +0000
From: "Moger, Babu" <Babu.Moger@....com>
To: Radim Krčmář <rkrcmar@...hat.com>
CC: "joro@...tes.org" <joro@...tes.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"mingo@...hat.com" <mingo@...hat.com>,
"hpa@...or.com" <hpa@...or.com>, "x86@...nel.org" <x86@...nel.org>,
"pbonzini@...hat.com" <pbonzini@...hat.com>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v2 3/5] KVM: VMX: Bring the common code to header file
> -----Original Message-----
> From: Radim Krčmář <rkrcmar@...hat.com>
> Sent: Wednesday, March 28, 2018 3:27 PM
> To: Moger, Babu <Babu.Moger@....com>
> Cc: joro@...tes.org; tglx@...utronix.de; mingo@...hat.com;
> hpa@...or.com; x86@...nel.org; pbonzini@...hat.com;
> kvm@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH v2 3/5] KVM: VMX: Bring the common code to header
> file
>
> 2018-03-16 16:37-0400, Babu Moger:
> > This patch brings some of the code from vmx to x86.h header file. Now, we
> > can share this code between vmx and svm. Modified couple functions to
> make
> > it common.
> >
> > Signed-off-by: Babu Moger <babu.moger@....com>
> > ---
> > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> > @@ -6683,8 +6652,9 @@ static void shrink_ple_window(struct kvm_vcpu
> *vcpu)
> > struct vcpu_vmx *vmx = to_vmx(vcpu);
> > int old = vmx->ple_window;
> >
> > - vmx->ple_window = __shrink_ple_window(old,
> > - ple_window_shrink, ple_window);
> > + vmx->ple_window = __shrink_ple_window(old, ple_window,
> > + ple_window_shrink,
> > + 0);
>
> I have preserved the old minumum (ple_window, so we could't get
> uselessly small values).
Ok. Looks good. Thanks
Powered by blists - more mailing lists