]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Add PTW feature detection on new hardware
authorBibo Mao <maobibo@loongson.cn>
Tue, 23 Sep 2025 15:37:08 +0000 (23:37 +0800)
committerHuacai Chen <chenhuacai@kernel.org>
Tue, 23 Sep 2025 15:37:08 +0000 (23:37 +0800)
commit7109f51bcc80b79a8f31e50fa5c96a20c54197d9
treea2b3c37937789102877e4301c2f7dbb946a827b3
parent07e27ad16399afcd693be20211b0dfae63e0615f
LoongArch: KVM: Add PTW feature detection on new hardware

With new Loongson-3A6000/3C6000 hardware platforms (or later), hardware
page table walking (PTW) feature is supported on host. So here add this
feature detection on KVM host.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/uapi/asm/kvm.h
arch/loongarch/kvm/vcpu.c
arch/loongarch/kvm/vm.c