]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Introduce optional ONE_REG callbacks for SBI extensions
authorAnup Patel <apatel@ventanamicro.com>
Sat, 23 Aug 2025 15:59:44 +0000 (21:29 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 05:24:14 +0000 (10:54 +0530)
commit699a53aedb18da50b4040b870784f9943dead5d8
tree520b858154b11e628c7cca865d91fe38dfa7c59a
parenta6250b18b5df7880b3c26e5d16ca24c31c1be259
RISC-V: KVM: Introduce optional ONE_REG callbacks for SBI extensions

SBI extensions can have per-VCPU state which needs to be saved/restored
through ONE_REG interface for Guest/VM migration. Introduce optional
ONE_REG callbacks for SBI extensions so that ONE_REG implementation
for an SBI extenion is part of the extension sources.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250823155947.1354229-4-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_vcpu_sbi.h
arch/riscv/kvm/vcpu_onereg.c
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_sta.c