KVM: RISC-V: refactor vector state reset
authorRadim Krčmář <rkrcmar@ventanamicro.com>
Thu, 3 Apr 2025 11:25:20 +0000 (13:25 +0200)
committerAnup Patel <anup@brainfault.org>
Wed, 21 May 2025 04:04:46 +0000 (09:34 +0530)
commit9ffecf04144db5517eae204e65b7cde75ac920e0
treee6e03599c2f49c68a3ec372bbf0cc156ef84b877
parenta29c19e13de1b0a37697ee86fccb190a86ade9ce
KVM: RISC-V: refactor vector state reset

Do not depend on the reset structures.

vector.datap is a kernel memory pointer that needs to be preserved as it
is not a part of the guest vector data.

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