linux/arch/loongarch/kvm
Bibo Mao 05d70ebf74 LoongArch: KVM: Do not flush tlb if HW PTW supported
With HW PTW supported, invalid TLB is not added when page fault happens.
But for EXCCODE_TLBM exception, stale TLB may exist because of the last
read access. Thus TLB flush operation is necessary for the EXCCODE_TLBM
exception, but not necessary for other tyeps of page fault exceptions.

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

Here remove unnecessary TLB flush opereation with HW PTW supported.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-05-20 20:20:18 +08:00
..
intc LoongArch: KVM: Fix multiple typos of KVM code 2025-04-26 09:58:13 +08:00
exit.c LoongArch: KVM: Do not flush tlb if HW PTW supported 2025-05-20 20:20:18 +08:00
interrupt.c LoongArch: KVM: Implement vcpu interrupt operations 2023-10-02 10:01:28 +08:00
irqfd.c LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00
Kconfig LoongArch: KVM: Register perf callbacks for guest 2025-03-18 16:48:08 +08:00
main.c LoongArch: KVM: Fix multiple typos of KVM code 2025-04-26 09:58:13 +08:00
Makefile Fix mis-uses of 'cc-option' for warning disablement 2025-04-23 10:08:29 -07:00
mmu.c LoongArch: KVM: Do not flush tlb if HW PTW supported 2025-05-20 20:20:18 +08:00
switch.S LoongArch: KVM: Remove PGD saving during VM context switch 2025-03-18 16:48:08 +08:00
timer.c LoongArch: KVM: Mark hrtimer to expire in hard interrupt context 2024-10-23 22:15:44 +08:00
tlb.c LoongArch: KVM: Delay secondary mmu tlb flush until guest entry 2024-07-09 16:25:50 +08:00
trace.h LoongArch: KVM: Add mmio trace events support 2024-05-06 22:00:47 +08:00
vcpu.c LoongArch: KVM: Fix PMU pass-through issue if VM exits to host finally 2025-04-26 09:58:13 +08:00
vm.c LoongArch: KVM: Fix GPA size issue about VM 2025-03-08 13:52:04 +08:00