Re: [Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-16 Thread Wei Liu
On Wed, May 16, 2018 at 12:27:29PM +0100, Andrew Cooper wrote: > On 14/05/18 16:48, Wei Liu wrote: > > On Fri, May 11, 2018 at 11:38:14AM +0100, Andrew Cooper wrote: > >> If Xen is virtualising MSR_SPEC_CTRL handling for guests, but using 0 as > >> its > >> own MSR_SPEC_CTRL value, spec_ctrl_{ente

Re: [Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-16 Thread Andrew Cooper
On 14/05/18 16:48, Wei Liu wrote: > On Fri, May 11, 2018 at 11:38:14AM +0100, Andrew Cooper wrote: >> If Xen is virtualising MSR_SPEC_CTRL handling for guests, but using 0 as its >> own MSR_SPEC_CTRL value, spec_ctrl_{enter,exit}_idle() need not write to the >> MSR. >> >> Requested-by: Jan Beulich

Re: [Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-14 Thread Wei Liu
On Fri, May 11, 2018 at 11:38:14AM +0100, Andrew Cooper wrote: > If Xen is virtualising MSR_SPEC_CTRL handling for guests, but using 0 as its > own MSR_SPEC_CTRL value, spec_ctrl_{enter,exit}_idle() need not write to the > MSR. > > Requested-by: Jan Beulich > Signed-off-by: Andrew Cooper > --- >

[Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-11 Thread Andrew Cooper
If Xen is virtualising MSR_SPEC_CTRL handling for guests, but using 0 as its own MSR_SPEC_CTRL value, spec_ctrl_{enter,exit}_idle() need not write to the MSR. Requested-by: Jan Beulich Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné CC: Juergen Gross --- xen