aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/include/timer_test.h
diff options
context:
space:
mode:
authorHaibo Xu <[email protected]>2024-01-22 09:58:42 +0000
committerAnup Patel <[email protected]>2024-03-06 15:23:29 +0000
commitd0b94bcbb04262b9ffe6e172223e8cbb663a2c9d (patch)
tree7779a0ba757871823641275e7d742b19bdb52b88 /tools/testing/selftests/kvm/include/timer_test.h
parentKVM: riscv: selftests: Change vcpu_has_ext to a common function (diff)
downloadkernel-d0b94bcbb04262b9ffe6e172223e8cbb663a2c9d.tar.gz
kernel-d0b94bcbb04262b9ffe6e172223e8cbb663a2c9d.zip
KVM: riscv: selftests: Add sstc timer test
Add a KVM selftests to validate the Sstc timer functionality. The test was ported from arm64 arch timer test. Signed-off-by: Haibo Xu <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/include/timer_test.h')
-rw-r--r--tools/testing/selftests/kvm/include/timer_test.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/include/timer_test.h b/tools/testing/selftests/kvm/include/timer_test.h
index 256e2d2137cf..9b6edaafe6d4 100644
--- a/tools/testing/selftests/kvm/include/timer_test.h
+++ b/tools/testing/selftests/kvm/include/timer_test.h
@@ -23,8 +23,9 @@ struct test_args {
uint32_t timer_period_ms;
uint32_t migration_freq_ms;
uint32_t timer_err_margin_us;
- /* TODO: Change arm specific type to a common one */
- struct kvm_arm_counter_offset offset;
+ /* Members of struct kvm_arm_counter_offset */
+ uint64_t counter_offset;
+ uint64_t reserved;
};
/* Shared variables between host and guest */