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>
Showing
Please register or sign in to comment