]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: KVM: Get VM PMU capability from HW GCFG register
authorBibo Mao <maobibo@loongson.cn>
Thu, 27 Nov 2025 03:00:18 +0000 (11:00 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 27 Nov 2025 03:00:18 +0000 (11:00 +0800)
commit74087611f0ba7b336dcdde855ffca7d15b2ebe0f
tree21d9412d4b32bf8a703c329e67312eb0c64c3886
parentac3fd01e4c1efce8f2c054cdeb2ddd2fc0fb150d
LoongArch: KVM: Get VM PMU capability from HW GCFG register

Now VM PMU capability comes from host PMU capability directly, instead
bit 23 of HW GCFG CSR register also show PMU capability for VM. It will
be better if it comes from HW GCFG CSR register rather than just host
PMU capability, especially when LVZ feature is emulated in TCG mode, in
which case without PMU capability.

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