mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-07-27 00:15:55 +00:00
Add virtual exception handling infrastructure for RISC-V hypervisor and enables proper virtualization of RISC-V exceptions by allowing the hypervisor to inject exceptions into guest VS-mode. - Implement vcpu_set_trap() to inject traps to VS-mode - Implement vcpu_queue_exception() to queue exceptions for vCPU injection - Process pending exception requests in riscv_process_vcpu_requests() v1->v2: change vcpu_redirect_trap -> vcpu_set_trap Tracked-On: #8844 Signed-off-by: Yi Y Sun <yi.y.sun@intel.com> Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>