Commit 45348e42 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

RISC-V: KVM: Save trap CSRs in kvm_riscv_vcpu_enter_exit()



We should save trap CSRs in kvm_riscv_vcpu_enter_exit() instead of
kvm_arch_vcpu_ioctl_run() so that we can do more optimized access
to HTVAL and HTINST CSRs while running under some other hypervisor.

Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
parent 293d6d4b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment