]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: RISC-V: remove unnecessary SBI reset state
authorRadim Krčmář <rkrcmar@ventanamicro.com>
Thu, 3 Apr 2025 11:25:22 +0000 (13:25 +0200)
committerAnup Patel <anup@brainfault.org>
Wed, 21 May 2025 04:04:52 +0000 (09:34 +0530)
commit9f0e6b98c1a13ac1f38d559b548b8f122572ae18
tree28f16fbac05bdb8d8fa586455d821136b2ad0115
parenta1c66842f1b5a054af2f3d9b4d12b8674f5f558f
KVM: RISC-V: remove unnecessary SBI reset state

The SBI reset state has only two variables -- pc and a1.
The rest is known, so keep only the necessary information.

The reset structures make sense if we want userspace to control the
reset state (which we do), but I'd still remove them now and reintroduce
with the userspace interface later -- we could probably have just a
single reset state per VM, instead of a reset state for each VCPU.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Link: https://lore.kernel.org/r/20250403112522.1566629-6-rkrcmar@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_aia.h
arch/riscv/include/asm/kvm_host.h
arch/riscv/kvm/aia_device.c
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_sbi.c