Skip to contentSkip to conversation

KVM: selftests: Add check_steal_time_uapi() implementation for LoongArch

PATCH Applied Sean Christopherson 2 participants 2 messages Apr 20 – Apr 27

Subsystems (2)
lore
Share & tools
lore

Sean Christopherson

author reviewer
#0 lore raw

PATCH 1/1 KVM: selftests: Add check_steal_time_uapi() implementation for LoongArch

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 <[email protected]>
Cc Jiakai Xu <[email protected]>
Cc Andrew Jones <[email protected]>
Cc Anup Patel <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Fixes 40351ed924dd ("KVM: selftests: Refactor UAPI tests into dedicated function")

---

Paolo, if you can apply this directly, that would be ideal.

 tools/testing/selftests/kvm/steal_time.c | 5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/kvm/steal_time.c +5 -0
index efe56a10d13e..ea18bbbbd9f9 100644
@@ -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

Signature · 1 line
2.54.0.rc1.555.g9c883467ad-goog