public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] LoongArch: KVM: Do not flush tlb if HW PTW supported
@ 2025-04-24  6:46 Bibo Mao
  2025-04-24  6:46 ` [PATCH 1/2] LoongArch: KVM: Add parameter exception code with exception handler Bibo Mao
  2025-04-24  6:46 ` [PATCH 2/2] LoongArch: KVM: Do not flush tlb if HW PTW supported Bibo Mao
  0 siblings, 2 replies; 4+ messages in thread
From: Bibo Mao @ 2025-04-24  6:46 UTC (permalink / raw)
  To: Tianrui Zhao, Huacai Chen; +Cc: WANG Xuerui, kvm, loongarch, linux-kernel

With HW PTW supported, stale TLB is not added if page fault happens. With
EXCCODE_TLBM exception, stale TLB may exist because last read access, tlb
flush operation is necessary with EXCCODE_TLBM exception, and not necessary
with other memory page fault exceptions.

With SW PTW supported, invalid TLB is added in TLB refill exception.
TLB flush operation is necessary with all page fault exceptions.

Bibo Mao (2):
  LoongArch: KVM: Add parameter exception code with exception handler
  LoongArch: KVM: Do not flush tlb if HW PTW supported

 arch/loongarch/include/asm/kvm_host.h |  2 +-
 arch/loongarch/include/asm/kvm_vcpu.h |  2 +-
 arch/loongarch/kvm/exit.c             | 34 +++++++++++++--------------
 arch/loongarch/kvm/mmu.c              | 17 ++++++++++----
 4 files changed, 31 insertions(+), 24 deletions(-)


base-commit: 9d7a0577c9db35c4cc52db90bc415ea248446472
-- 
2.39.3


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

end of thread, other threads:[~2025-04-25  7:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-24  6:46 [PATCH 0/2] LoongArch: KVM: Do not flush tlb if HW PTW supported Bibo Mao
2025-04-24  6:46 ` [PATCH 1/2] LoongArch: KVM: Add parameter exception code with exception handler Bibo Mao
2025-04-25  7:05   ` kernel test robot
2025-04-24  6:46 ` [PATCH 2/2] LoongArch: KVM: Do not flush tlb if HW PTW supported Bibo Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox