Re: [Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-16 Thread Razvan Cojocaru
On 02/16/2018 01:25 PM, Roger Pau Monné wrote: > On Thu, Feb 15, 2018 at 09:32:00PM +0200, Razvan Cojocaru wrote: >> On 02/15/2018 08:57 PM, Andrew Cooper wrote: >>> On 15/02/18 16:25, Roger Pau Monne wrote: There a bunch of bits in CR4 that should be allowed to be set directly by the gue

Re: [Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-16 Thread Roger Pau Monné
On Thu, Feb 15, 2018 at 09:32:00PM +0200, Razvan Cojocaru wrote: > On 02/15/2018 08:57 PM, Andrew Cooper wrote: > > On 15/02/18 16:25, Roger Pau Monne wrote: > >> There a bunch of bits in CR4 that should be allowed to be set directly > >> by the guest without requiring Xen intervention, currently t

Re: [Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-16 Thread Roger Pau Monné
On Thu, Feb 15, 2018 at 06:57:46PM +, Andrew Cooper wrote: > On 15/02/18 16:25, Roger Pau Monne wrote: > > There a bunch of bits in CR4 that should be allowed to be set directly > > by the guest without requiring Xen intervention, currently this is > > already done by passing through guest writ

Re: [Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-15 Thread Razvan Cojocaru
On 02/15/2018 08:57 PM, Andrew Cooper wrote: > On 15/02/18 16:25, Roger Pau Monne wrote: >> There a bunch of bits in CR4 that should be allowed to be set directly >> by the guest without requiring Xen intervention, currently this is >> already done by passing through guest writes into the CR4 used

Re: [Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-15 Thread Andrew Cooper
On 15/02/18 16:25, Roger Pau Monne wrote: > There a bunch of bits in CR4 that should be allowed to be set directly > by the guest without requiring Xen intervention, currently this is > already done by passing through guest writes into the CR4 used when > running in non-root mode, but taking an exp

[Xen-devel] [PATCH] vmx/hap: optimize CR4 trapping

2018-02-15 Thread Roger Pau Monne
There a bunch of bits in CR4 that should be allowed to be set directly by the guest without requiring Xen intervention, currently this is already done by passing through guest writes into the CR4 used when running in non-root mode, but taking an expensive vmexit in order to do so. xenalyze reports