diff options
author | Andy Chiu <andy.chiu@sifive.com> | 2023-01-27 06:58:55 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-07 16:05:28 +0100 |
commit | cdeb59bbf19f456253fd257c744b8383f972cf1e (patch) | |
tree | 6c32c0eecab36bcf6bf2da7f01174928e46363ba /arch/riscv/boot/loader.lds.S | |
parent | RISC-V: KVM: Fix privilege mode setting in kvm_riscv_vcpu_trap_redirect() (diff) | |
download | linux-cdeb59bbf19f456253fd257c744b8383f972cf1e.tar.xz linux-cdeb59bbf19f456253fd257c744b8383f972cf1e.zip |
RISC-V: KVM: Redirect illegal instruction traps to guest
The M-mode redirects an unhandled illegal instruction trap back
to S-mode. However, KVM running in HS-mode terminates the VS-mode
software when it receives illegal instruction trap. Instead, KVM
should redirect the illegal instruction trap back to VS-mode, and
let VS-mode trap handler decide the next step. This futher allows
guest kernel to implement on-demand enabling of vector extension
for a guest user space process upon first-use.
Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/boot/loader.lds.S')
0 files changed, 0 insertions, 0 deletions