]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: LoongArch: selftests: Add SW emulated timer test case
authorBibo Mao <maobibo@loongson.cn>
Fri, 28 Nov 2025 06:49:47 +0000 (14:49 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 28 Nov 2025 06:49:47 +0000 (14:49 +0800)
commit4e8824094069b04e3b3583d855c975ccb6a9bec5
tree43f5af1d62ce15e0e4f5e52e712b3fed68b74eb9
parentdf41742343fad11fde06e085096003d64599785f
KVM: LoongArch: selftests: Add SW emulated timer test case

This test case setup one-shot timer and execute idle instruction
immediately to indicate giving up CPU, hypervisor will emulate SW
hrtimer and wakeup vCPU when SW hrtimer is fired.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
tools/testing/selftests/kvm/loongarch/arch_timer.c