Applied, thanks.
Huacai
On Tue, Mar 10, 2026 at 5:52 PM Song Gao <gaosong@loongson.cn> wrote:
>
> This series adds KVM selftests for the LoongArch Performance Monitoring Unit (PMU),
> covering basic event counting and overflow interrupt functionality.
>
> Thanks.
> Song Gao
>
> Song Gao (3):
> KVM: LoongArch: selftests: Add cpucfg read/write helpers
> KVM: LoongArch: selftests: Add basic PMU event counting test
> KVM: LoongArch: selftests: Add PMU overflow interrupt test
>
> tools/testing/selftests/kvm/Makefile.kvm | 1 +
> .../selftests/kvm/include/loongarch/pmu.h | 66 ++++++
> .../kvm/include/loongarch/processor.h | 15 ++
> .../selftests/kvm/lib/loongarch/processor.c | 14 +-
> .../selftests/kvm/loongarch/guest_pmu_test.c | 205 ++++++++++++++++++
> 5 files changed, 300 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/kvm/include/loongarch/pmu.h
> create mode 100644 tools/testing/selftests/kvm/loongarch/guest_pmu_test.c
>
> --
> 2.47.3
>