]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Use SBI sync SRET call when available
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:32 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:14:03 +0000 (16:44 +0530)
commit68c72a6557b072bff79658b9c0fdb0e69148e32d
treeea5948f1ff14a011f397766621575914b011ec54
parentdab55604aec572cfa2bc6b51be288da1ac4c7366
RISC-V: KVM: Use SBI sync SRET call when available

Implement an optimized KVM world-switch using SBI sync SRET call
when SBI nested acceleration extension is available. This improves
KVM world-switch when KVM RISC-V is running as a Guest under some
other hypervisor.

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