diff options
| author | Xu Lu <[email protected]> | 2025-07-14 09:45:54 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-07-28 16:57:40 +0000 |
| commit | 3729fe8cbb4807c6156938bc0eb643d97775a80d (patch) | |
| tree | 2de95fe95aaa67cfaf8319cab4e8d6af695a2032 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | RISC-V: KVM: Pass VMID as parameter to kvm_riscv_hfence_xyz() APIs (diff) | |
| download | kernel-3729fe8cbb4807c6156938bc0eb643d97775a80d.tar.gz kernel-3729fe8cbb4807c6156938bc0eb643d97775a80d.zip | |
RISC-V: KVM: Delegate illegal instruction fault to VS mode
Delegate illegal instruction fault to VS mode by default to avoid such
exceptions being trapped to HS and redirected back to VS.
The delegation of illegal instruction fault is particularly important
to guest applications that use vector instructions frequently. In such
cases, an illegal instruction fault will be raised when guest user thread
uses vector instruction the first time and then guest kernel will enable
user thread to execute following vector instructions.
The fw pmu event counter remains undeleted so that guest can still query
illegal instruction events via sbi call. Guest will only see zero count
on illegal instruction faults and know 'firmware' has delegated it.
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Xu Lu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
