Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Sean Christopherson
On Wed, Oct 09, 2019 at 10:59:10PM +0200, Paolo Bonzini wrote: > On 09/10/19 18:38, Sean Christopherson wrote: > > On Wed, Oct 09, 2019 at 12:40:53PM +0200, Paolo Bonzini wrote: > >> On 27/09/19 23:45, Sean Christopherson wrote: > >>> Rework vmx_set_rflags() to avoid the extra code need to handle e

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Paolo Bonzini
On 09/10/19 18:38, Sean Christopherson wrote: > On Wed, Oct 09, 2019 at 12:40:53PM +0200, Paolo Bonzini wrote: >> On 27/09/19 23:45, Sean Christopherson wrote: >>> Rework vmx_set_rflags() to avoid the extra code need to handle emulation >>> of real mode and invalid state when unrestricted guest is

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Sean Christopherson
On Wed, Oct 09, 2019 at 12:40:53PM +0200, Paolo Bonzini wrote: > On 27/09/19 23:45, Sean Christopherson wrote: > > Rework vmx_set_rflags() to avoid the extra code need to handle emulation > > of real mode and invalid state when unrestricted guest is disabled. The > > primary reason for doing so is

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Paolo Bonzini
On 27/09/19 23:45, Sean Christopherson wrote: > Rework vmx_set_rflags() to avoid the extra code need to handle emulation > of real mode and invalid state when unrestricted guest is disabled. The > primary reason for doing so is to avoid the call to vmx_get_rflags(), > which will incur a VMREAD whe

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Mon, Sep 30, 2019 at 10:57:17AM +0200, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >> > Rework vmx_set_rflags() to avoid the extra code need to handle emulation >> > of real mode and invalid state when unrestricted guest is disabled. The >> > prim

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-09-30 Thread Sean Christopherson
On Mon, Sep 30, 2019 at 10:57:17AM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > Rework vmx_set_rflags() to avoid the extra code need to handle emulation > > of real mode and invalid state when unrestricted guest is disabled. The > > primary reason for doing so is to avoid t

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Rework vmx_set_rflags() to avoid the extra code need to handle emulation > of real mode and invalid state when unrestricted guest is disabled. The > primary reason for doing so is to avoid the call to vmx_get_rflags(), > which will incur a VMREAD when RFLAGS is not

[PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-09-27 Thread Sean Christopherson
Rework vmx_set_rflags() to avoid the extra code need to handle emulation of real mode and invalid state when unrestricted guest is disabled. The primary reason for doing so is to avoid the call to vmx_get_rflags(), which will incur a VMREAD when RFLAGS is not already available. When running neste