mbox series

[0/2] KVM: nVMX: Fix VPID + !EPT TLB bugs

Message ID 20211125014944.536398-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: nVMX: Fix VPID + !EPT TLB bugs | expand

Message

Sean Christopherson Nov. 25, 2021, 1:49 a.m. UTC
Fix two bugs reported by Lai where KVM mishandles guest-scoped TLB flushes
when L2 is active.  Bugs confirmed (and confirmed fixed) by the VPID+access
test (patches posted for kvm-unit-tests).

Sean Christopherson (2):
  KVM: nVMX: Flush current VPID (L1 vs. L2) for KVM_REQ_TLB_FLUSH_GUEST
  KVM: nVMX: Emulate guest TLB flush on nested VM-Enter with new vpid12

 arch/x86/kvm/vmx/nested.c | 45 +++++++++++++++++----------------------
 arch/x86/kvm/vmx/vmx.c    | 23 ++++++++++++--------
 arch/x86/kvm/x86.c        | 28 ++++++++++++++++++++----
 arch/x86/kvm/x86.h        |  7 +-----
 4 files changed, 59 insertions(+), 44 deletions(-)

Comments

Paolo Bonzini Nov. 26, 2021, 12:11 p.m. UTC | #1
On 11/25/21 02:49, Sean Christopherson wrote:
> Fix two bugs reported by Lai where KVM mishandles guest-scoped TLB flushes
> when L2 is active.  Bugs confirmed (and confirmed fixed) by the VPID+access
> test (patches posted for kvm-unit-tests).
> 
> Sean Christopherson (2):
>    KVM: nVMX: Flush current VPID (L1 vs. L2) for KVM_REQ_TLB_FLUSH_GUEST
>    KVM: nVMX: Emulate guest TLB flush on nested VM-Enter with new vpid12
> 
>   arch/x86/kvm/vmx/nested.c | 45 +++++++++++++++++----------------------
>   arch/x86/kvm/vmx/vmx.c    | 23 ++++++++++++--------
>   arch/x86/kvm/x86.c        | 28 ++++++++++++++++++++----
>   arch/x86/kvm/x86.h        |  7 +-----
>   4 files changed, 59 insertions(+), 44 deletions(-)
> 

Queued, thanks (but I split the first in two).

Paolo