All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] KVM: Add a common API for range-based TLB invalidation
@ 2023-01-19 17:35 ` David Matlack
  0 siblings, 0 replies; 64+ messages in thread
From: David Matlack @ 2023-01-19 17:35 UTC (permalink / raw)
  To: kvm-riscv

This series introduces a common API for performing range-based TLB
invalidation. This is then used to supplant
kvm_arch_flush_remote_tlbs_memslot() and pave the way for two other
patch series:

1. https://lore.kernel.org/kvm/20230109215347.3119271-1-rananta at google.com/

  Adds ARM support for range-based TLB invalidation and needs a
  mechanism to invoke it from common code. This series provides such a
  mechanism via kvm_arch_flush_remote_tlbs_range().

2. https://lore.kernel.org/kvm/20221208193857.4090582-1-dmatlack at google.com/

  Refactors the TDP MMU into common code, which requires an API for
  range-based TLB invaliation.

This series is based on patches 29-33 from (2.), but I made some further
cleanups after looking at it a second time.

Tested on x86_64 and ARM64 using KVM selftests.

Cc: Raghavendra Rao Ananta <rananta@google.com>

David Matlack (7):
  KVM: Rename kvm_arch_flush_remote_tlb() to
    kvm_arch_flush_remote_tlbs()
  KVM: arm64: Use kvm_arch_flush_remote_tlbs()
  KVM: x86/mmu: Collapse kvm_flush_remote_tlbs_with_{range,address}()
    together
  KVM: x86/mmu: Rename kvm_flush_remote_tlbs_with_address()
  KVM: x86/MMU: Use gfn_t in kvm_flush_remote_tlbs_range()
  KVM: Allow range-based TLB invalidation from common code
  KVM: Move kvm_arch_flush_remote_tlbs_memslot() to common code

 arch/arm64/include/asm/kvm_host.h |  3 ++
 arch/arm64/kvm/Kconfig            |  1 -
 arch/arm64/kvm/arm.c              |  6 ---
 arch/arm64/kvm/mmu.c              |  6 +--
 arch/mips/include/asm/kvm_host.h  |  4 +-
 arch/mips/kvm/mips.c              | 12 ++----
 arch/riscv/kvm/mmu.c              |  6 ---
 arch/x86/include/asm/kvm_host.h   |  7 +++-
 arch/x86/kvm/mmu/mmu.c            | 68 ++++++++++---------------------
 arch/x86/kvm/mmu/mmu_internal.h   |  2 -
 arch/x86/kvm/mmu/paging_tmpl.h    |  4 +-
 arch/x86/kvm/mmu/tdp_mmu.c        |  7 ++--
 arch/x86/kvm/x86.c                |  2 +-
 include/linux/kvm_host.h          | 20 ++++++---
 virt/kvm/kvm_main.c               | 35 +++++++++++++---
 15 files changed, 87 insertions(+), 96 deletions(-)


base-commit: de60733246ff4545a0483140c1f21426b8d7cb7f
prerequisite-patch-id: 42a76ce7cec240776c21f674e99e893a3a6bee58
prerequisite-patch-id: c5ef6bbef252706b7e65b76dc9bd92cf320828f5
prerequisite-patch-id: c6e662cb6c369a47a027c25d3ccc7138a19b17f5
prerequisite-patch-id: 15a58bec64bf1537e6c9e2f52179fac652d441f7
prerequisite-patch-id: d5b6fea4724f4f2c3408b95d7ce5acdd4b528b10
-- 
2.39.0.246.g2a6d74b583-goog



^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2023-01-25 17:23 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 17:35 [PATCH 0/7] KVM: Add a common API for range-based TLB invalidation David Matlack
2023-01-19 17:35 ` David Matlack
2023-01-19 17:35 ` David Matlack
2023-01-19 17:35 ` David Matlack
2023-01-19 17:35 ` [PATCH 1/7] KVM: Rename kvm_arch_flush_remote_tlb() to kvm_arch_flush_remote_tlbs() David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35 ` [PATCH 2/7] KVM: arm64: Use kvm_arch_flush_remote_tlbs() David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-24 17:17   ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-24 17:28     ` David Matlack
2023-01-24 17:28       ` David Matlack
2023-01-24 17:28       ` David Matlack
2023-01-24 17:28       ` David Matlack
2023-01-19 17:35 ` [PATCH 3/7] KVM: x86/mmu: Collapse kvm_flush_remote_tlbs_with_{range,address}() together David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35 ` [PATCH 4/7] KVM: x86/mmu: Rename kvm_flush_remote_tlbs_with_address() David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 18:17   ` Sean Christopherson
2023-01-19 18:17     ` Sean Christopherson
2023-01-19 18:17     ` Sean Christopherson
2023-01-19 18:17     ` Sean Christopherson
2023-01-19 18:26     ` David Matlack
2023-01-19 18:26       ` David Matlack
2023-01-19 18:26       ` David Matlack
2023-01-19 18:26       ` David Matlack
2023-01-19 17:35 ` [PATCH 5/7] KVM: x86/MMU: Use gfn_t in kvm_flush_remote_tlbs_range() David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35 ` [PATCH 6/7] KVM: Allow range-based TLB invalidation from common code David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-24 17:17   ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-24 17:17     ` Oliver Upton
2023-01-19 17:35 ` [PATCH 7/7] KVM: Move kvm_arch_flush_remote_tlbs_memslot() to " David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-19 17:35   ` David Matlack
2023-01-25  0:46 ` [PATCH 0/7] KVM: Add a common API for range-based TLB invalidation Sean Christopherson
2023-01-25  0:46   ` Sean Christopherson
2023-01-25  0:46   ` Sean Christopherson
2023-01-25  0:46   ` Sean Christopherson
2023-01-25  0:51   ` Oliver Upton
2023-01-25  0:51     ` Oliver Upton
2023-01-25  0:51     ` Oliver Upton
2023-01-25  0:51     ` Oliver Upton
2023-01-25 17:21     ` David Matlack
2023-01-25 17:21       ` David Matlack
2023-01-25 17:21       ` David Matlack
2023-01-25 17:21       ` David Matlack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.