Thread (28 messages) 28 messages, 2 authors, 2023-07-14

Re: [RESEND PATCH v5 03/11] KVM: Allow range-based TLB invalidation from common code

From: Gavin Shan <hidden>
Date: 2023-07-04 23:55:38
Also in: kvm, kvm-riscv, kvmarm, linux-mips, linux-riscv, lkml


On 6/22/23 03:49, Raghavendra Rao Ananta wrote:
From: David Matlack <dmatlack@google.com>

Make kvm_flush_remote_tlbs_range() visible in common code and create a
default implementation that just invalidates the whole TLB.

This paves the way for several future features/cleanups:

  - Introduction of range-based TLBI on ARM.
  - Eliminating kvm_arch_flush_remote_tlbs_memslot()
  - Moving the KVM/x86 TDP MMU to common code.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Signed-off-by: Raghavendra Rao Ananta <redacted>
---
  arch/x86/include/asm/kvm_host.h |  3 +++
  arch/x86/kvm/mmu/mmu.c          |  9 ++++-----
  arch/x86/kvm/mmu/mmu_internal.h |  3 ---
  include/linux/kvm_host.h        |  9 +++++++++
  virt/kvm/kvm_main.c             | 13 +++++++++++++
  5 files changed, 29 insertions(+), 8 deletions(-)
Reviewed-by: Gavin Shan <redacted>

Thanks,
Gavin


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help