]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: LoongArch: selftests: Add cpucfg read/write helpers
authorSong Gao <gaosong@loongson.cn>
Thu, 9 Apr 2026 10:56:37 +0000 (18:56 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 9 Apr 2026 10:56:37 +0000 (18:56 +0800)
commitfa19ea9a7bdb97575e05d72305a4c40a3a631357
tree4d9a73986b5e7543adb9d445eefd940054e5e08a
parent03de5eecb0f0f68f29086bc0075c7fd597bf4e4a
KVM: LoongArch: selftests: Add cpucfg read/write helpers

Add helper macros and functions to read and write CPU configuration
registers (cpucfg) from the guest and from the VMM. This interface is
required in upcoming selftests for querying and setting CPU features,
such as PMU capabilities.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
tools/testing/selftests/kvm/include/loongarch/processor.h
tools/testing/selftests/kvm/lib/loongarch/processor.c