[PATCH 0/4] KVM: X86: Improve guest TLB flushing

From: Lai Jiangshan
Date: Tue Oct 19 2021 - 07:01:53 EST


From: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>

The patchset focuses on the guest TLB flushing related to prev_roots.
It tries to keep CR3s in prev_roots and improves some comments.

Lai Jiangshan (4):
KVM: X86: Fix tlb flush for tdp in kvm_invalidate_pcid()
KVM: X86: Cache CR3 in prev_roots when PCID is disabled
KVM: X86: Use smp_rmb() to pair with smp_wmb() in
mmu_try_to_unsync_pages()
KVM: X86: Don't unload MMU in kvm_vcpu_flush_tlb_guest()

arch/x86/kvm/mmu.h | 1 +
arch/x86/kvm/mmu/mmu.c | 63 ++++++++++++++++++++++++++++++++----------
arch/x86/kvm/x86.c | 53 +++++++++++++++++++++++++++++------
3 files changed, 95 insertions(+), 22 deletions(-)

--
2.19.1.6.gb485710b