mbox series

[0/2] KVM: nVMX: Skip IPBP on nested VMCS switch

Message ID 20200506235850.22600-1-sean.j.christopherson@intel.com (mailing list archive)
Headers show
Series KVM: nVMX: Skip IPBP on nested VMCS switch | expand

Message

Sean Christopherson May 6, 2020, 11:58 p.m. UTC
Or as Jim would say, "Really skip IPBP on nested VMCS switch" :-D

Patch 1 is the delta between kvm/queue and v3 of the original patch[*],
i.e. I just cherry-picked v3 and fixed the conflicts.

Patch 2 applies the "no IPBP" logic to copy_vmcs02_to_vmcs12_rare().

Feel free to sqaush both of these to commit 7407a52f23732 ("KVM: nVMX:
Skip IBPB when switching between vmcs01 and vmcs02") if you so desire.

[*] https://lkml.kernel.org/r/20200505044644.16563-1-sean.j.christopherson@intel.com

Sean Christopherson (2):
  KVM: nVMX: Refactor IBPB handling on VMCS switch to genericize code
  KVM: nVMX: Skip IPBP when switching between vmcs01 and vmcs02, redux

 arch/x86/kvm/vmx/nested.c | 13 +++----------
 arch/x86/kvm/vmx/vmx.c    | 19 ++++++++++++++-----
 arch/x86/kvm/vmx/vmx.h    |  4 ++--
 3 files changed, 19 insertions(+), 17 deletions(-)

Comments

Paolo Bonzini May 7, 2020, 11:58 a.m. UTC | #1
On 07/05/20 01:58, Sean Christopherson wrote:
> Or as Jim would say, "Really skip IPBP on nested VMCS switch" :-D
> 
> Patch 1 is the delta between kvm/queue and v3 of the original patch[*],
> i.e. I just cherry-picked v3 and fixed the conflicts.
> 
> Patch 2 applies the "no IPBP" logic to copy_vmcs02_to_vmcs12_rare().
> 
> Feel free to sqaush both of these to commit 7407a52f23732 ("KVM: nVMX:
> Skip IBPB when switching between vmcs01 and vmcs02") if you so desire.

I squashed patch 1 and applied patch 2 separately.  Thanks!

Paolo

> [*] https://lkml.kernel.org/r/20200505044644.16563-1-sean.j.christopherson@intel.com
> 
> Sean Christopherson (2):
>   KVM: nVMX: Refactor IBPB handling on VMCS switch to genericize code
>   KVM: nVMX: Skip IPBP when switching between vmcs01 and vmcs02, redux
> 
>  arch/x86/kvm/vmx/nested.c | 13 +++----------
>  arch/x86/kvm/vmx/vmx.c    | 19 ++++++++++++++-----
>  arch/x86/kvm/vmx/vmx.h    |  4 ++--
>  3 files changed, 19 insertions(+), 17 deletions(-)
>