]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Save/restore HSTATUS in C source
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:23 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:13:40 +0000 (16:43 +0530)
commitb6114a7e2433e91fedee3ed983abf77b3ebc167c
treeb09906bede34e55b1f38b277dd05d65d0d9c91c0
parente403a90ad65628d32843f5d40542502659bc4573
RISC-V: KVM: Save/restore HSTATUS in C source

We will be optimizing HSTATUS CSR access via shared memory setup
using the SBI nested acceleration extension. To facilitate this,
we first move HSTATUS save/restore in kvm_riscv_vcpu_enter_exit().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241020194734.58686-3-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_switch.S