* [PATCH] KVM: selftests: Add check_steal_time_uapi() implementation for LoongArch
@ 2026-04-20 19:26 Sean Christopherson
0 siblings, 0 replies; only message in thread
From: Sean Christopherson @ 2026-04-20 19:26 UTC (permalink / raw)
To: Paolo Bonzini
Cc: kvm, linux-kernel, Jiakai Xu, Jiakai Xu, Andrew Jones, Anup Patel,
Tianrui Zhao, Bibo Mao, Huacai Chen, Sean Christopherson
Define check_steal_time_uapi() for LoongArch so that the steal_time test
builds. Note, while LoongArch's steal_time_init() has some funky asserts,
none of the code is uniquely verifying KVM's uAPI.
Cc: Jiakai Xu <xujiakai2025@iscas.ac.cn>
Cc: Jiakai Xu <jiakaiPeanut@gmail.com>
Cc: Andrew Jones <andrew.jones@oss.qualcomm.com>
Cc: Anup Patel <anup@brainfault.org>
Cc: Tianrui Zhao <zhaotianrui@loongson.cn>
Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Huacai Chen <chenhuacai@kernel.org>
Fixes: 40351ed924dd ("KVM: selftests: Refactor UAPI tests into dedicated function")
Signed-off-by: Sean Christopherson <seanjc@google.com>
---
Paolo, if you can apply this directly, that would be ideal.
tools/testing/selftests/kvm/steal_time.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/testing/selftests/kvm/steal_time.c b/tools/testing/selftests/kvm/steal_time.c
index efe56a10d13e..ea18bbbbd9f9 100644
--- a/tools/testing/selftests/kvm/steal_time.c
+++ b/tools/testing/selftests/kvm/steal_time.c
@@ -461,6 +461,11 @@ static void steal_time_dump(struct kvm_vm *vm, uint32_t vcpu_idx)
ksft_print_msg(" version: %d\n", st->version);
ksft_print_msg(" preempted: %d\n", st->preempted);
}
+
+static void check_steal_time_uapi(void)
+{
+
+}
#endif
static void *do_steal_time(void *arg)
base-commit: 6b802031877a995456c528095c41d1948546bf45
--
2.54.0.rc1.555.g9c883467ad-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-20 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 19:26 [PATCH] KVM: selftests: Add check_steal_time_uapi() implementation for LoongArch Sean Christopherson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox