linux-yocto/arch/riscv/kvm
Anup Patel 2a673aca82 RISC-V: KVM: Don't treat SBI HFENCE calls as NOPs
[ Upstream commit 2e7be16299 ]

The SBI specification clearly states that SBI HFENCE calls should
return SBI_ERR_NOT_SUPPORTED when one of the target hart doesn’t
support hypervisor extension (aka nested virtualization in-case
of KVM RISC-V).

Fixes: c7fa3c48de ("RISC-V: KVM: Treat SBI HFENCE calls as NOPs")
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20250605061458.196003-3-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:09:04 +01:00
..
aia_aplic.c RISC-V: KVM: Fix APLIC in_clrip and clripnum write emulation 2024-12-09 10:32:16 +01:00
aia_device.c RISC-V: KVM: No need to use mask when hart-index-bit is 0 2024-06-21 14:38:13 +02:00
aia_imsic.c RISCV: KVM: use raw_spinlock for critical section in imsic 2024-11-17 15:08:58 +01:00
aia.c RISC-V: KVM: return ENOENT in *_one_reg() when reg is unknown 2023-08-08 17:25:42 +05:30
Kconfig RISC-V: KVM: Skeletal in-kernel AIA irqchip support 2023-06-18 21:24:40 +05:30
main.c RISC-V: KVM: Implement guest external interrupt line management 2023-06-18 21:24:33 +05:30
Makefile RISC-V: KVM: Factor-out ONE_REG related code to its own source file 2023-08-08 17:25:29 +05:30
mmu.c riscv: Use accessors to page table entries instead of direct dereference 2024-09-12 11:11:40 +02:00
tlb.c RISC-V: KVM: use bitmap_zero() API 2023-06-06 08:51:50 +05:30
vcpu_exit.c RISC-V: KVM: Redirect AMO load/store misaligned traps to guest 2023-06-06 09:04:11 +05:30
vcpu_fp.c RISC-V: KVM: return ENOENT in *_one_reg() when reg is unknown 2023-08-08 17:25:42 +05:30
vcpu_insn.c RISC-V: KVM: Initial skeletal support for AIA 2023-04-21 17:45:48 +05:30
vcpu_onereg.c RISC-V: KVM: Fix incorrect reg_subtype labels in kvm_riscv_vcpu_set_reg_isa_ext function 2024-06-21 14:38:14 +02:00
vcpu_pmu.c RISC-V: KVM: Disable the kernel perf counter during configure 2025-04-10 14:37:26 +02:00
vcpu_sbi_base.c RISC-V: KVM: Add ONE_REG interface to enable/disable SBI extensions 2023-04-21 17:38:44 +05:30
vcpu_sbi_hsm.c riscv: KVM: Fix hart suspend status check 2025-03-07 16:45:44 +01:00
vcpu_sbi_pmu.c
vcpu_sbi_replace.c RISC-V: KVM: Don't treat SBI HFENCE calls as NOPs 2025-06-27 11:09:04 +01:00
vcpu_sbi_v01.c
vcpu_sbi.c RISC-V: KVM: lock the correct mp_state during reset 2025-06-19 15:28:18 +02:00
vcpu_switch.S
vcpu_timer.c RISC-V: KVM: do not EOPNOTSUPP in set KVM_REG_RISCV_TIMER_REG 2023-08-08 17:25:49 +05:30
vcpu_vector.c RISC-V: KVM: Improve vector save/restore functions 2023-08-08 17:26:05 +05:30
vcpu.c RISCV: KVM: Introduce mp_state_lock to avoid lock inversion 2025-03-07 16:45:44 +01:00
vm.c RISC-V: KVM: Skeletal in-kernel AIA irqchip support 2023-06-18 21:24:40 +05:30
vmid.c RISC-V: KVM: Drop the _MASK suffix from hgatp.VMID mask defines 2023-04-21 17:45:44 +05:30