[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250427024505.129383-1-maobibo@loongson.cn>
Date: Sun, 27 Apr 2025 10:45:03 +0800
From: Bibo Mao <maobibo@...ngson.cn>
To: Tianrui Zhao <zhaotianrui@...ngson.cn>,
Huacai Chen <chenhuacai@...nel.org>
Cc: WANG Xuerui <kernel@...0n.name>,
kvm@...r.kernel.org,
loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] LoongArch: KVM: Do not flush tlb if HW PTW supported
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.
---
v1 ... v2:
1. Add kernel doc notation since new parameter ecode is added, which is
reported from LKP.
---
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 | 37 ++++++++++++++-------------
arch/loongarch/kvm/mmu.c | 18 ++++++++++---
4 files changed, 35 insertions(+), 24 deletions(-)
base-commit: 5bc1018675ec28a8a60d83b378d8c3991faa5a27
--
2.39.3
Powered by blists - more mailing lists