diff options
author | Haibo Xu <haibo1.xu@intel.com> | 2024-01-22 17:58:40 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-03-06 20:53:23 +0530 |
commit | 1e979288c9b50a1eef1c5fa2fa93936012a0ed6f (patch) | |
tree | 5aa3b1ac094b086a1b069f06441ab1a5d37382af /tools/testing/selftests/kvm/include/aarch64/processor.h | |
parent | 38f680c25ece49c1f8ff55ee78dca0ee4e1793a6 (diff) |
KVM: riscv: selftests: Add guest helper to get vcpu id
Add guest_get_vcpuid() helper to simplify accessing to per-cpu
private data. The sscratch CSR was used to store the vcpu id.
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/aarch64/processor.h')
-rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/processor.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h index cf20e44e86f2..9e518b562827 100644 --- a/tools/testing/selftests/kvm/include/aarch64/processor.h +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h @@ -226,8 +226,4 @@ void smccc_smc(uint32_t function_id, uint64_t arg0, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6, struct arm_smccc_res *res); - - -uint32_t guest_get_vcpuid(void); - #endif /* SELFTEST_KVM_PROCESSOR_H */ |