diff options
author | Haibo Xu <haibo1.xu@intel.com> | 2024-01-22 12:58:42 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-03-06 18:23:29 +0300 |
commit | d0b94bcbb04262b9ffe6e172223e8cbb663a2c9d (patch) | |
tree | 7779a0ba757871823641275e7d742b19bdb52b88 /tools/testing/selftests/kvm/include/timer_test.h | |
parent | 812806bd1e70f79cc69061f9fd9bb1d367990d37 (diff) | |
download | linux-d0b94bcbb04262b9ffe6e172223e8cbb663a2c9d.tar.xz |
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 <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/testing/selftests/kvm/include/timer_test.h')
-rw-r--r-- | tools/testing/selftests/kvm/include/timer_test.h | 5 |
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 */ |