]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Add common nested acceleration support
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:29 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:13:57 +0000 (16:43 +0530)
commitd466c19cead5904d4d5d92adb2b213b411d3b849
tree8350ed86a19977b4dfb99515cfdc46365e41d084
parent5daf89e73d77a5edb21c9b2d67a1b5bf02e61e5a
RISC-V: KVM: Add common nested acceleration support

Add a common nested acceleration support which will be shared by
all parts of KVM RISC-V. This nested acceleration support detects
and enables SBI NACL extension usage based on static keys which
ensures minimum impact on the non-nested scenario.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241020194734.58686-9-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_nacl.h [new file with mode: 0644]
arch/riscv/kvm/Makefile
arch/riscv/kvm/main.c
arch/riscv/kvm/nacl.c [new file with mode: 0644]