]> git.ipfire.org Git - thirdparty/linux.git/commit
RISC-V: KVM: Factor-out VCPU config into separate sources
authorAnup Patel <anup.patel@oss.qualcomm.com>
Tue, 20 Jan 2026 07:59:54 +0000 (13:29 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 3 Apr 2026 12:18:40 +0000 (17:48 +0530)
commit6ed523e2b6129d7dd4aab801a610930d85b2d3f8
treebd0bca01db7e5f86071eb19c0c7afd18854feba9
parent0ee5501441cc7536271073063f13390164148e25
RISC-V: KVM: Factor-out VCPU config into separate sources

The VCPU config deals with hideleg, hedeleg, henvcfg, and hstateenX
CSR configuration for each VCPU. Factor-out VCPU config into separate
sources so that VCPU config can do things differently for guest HS-mode
and guest VS/VU-mode.

Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Reviewed-by: Radim Krčmář <radim.krcmar@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260120080013.2153519-9-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_host.h
arch/riscv/include/asm/kvm_vcpu_config.h [new file with mode: 0644]
arch/riscv/kvm/Makefile
arch/riscv/kvm/main.c
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_config.c [new file with mode: 0644]