OSDN Git Service

RISC-V: KVM: Add in-kernel virtualization of AIA IMSIC
authorAnup Patel <apatel@ventanamicro.com>
Thu, 15 Jun 2023 07:33:52 +0000 (13:03 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 19 Jun 2023 16:57:48 +0000 (22:27 +0530)
commitdb8b7e97d6137a28b2bfc07e591d54da268f0c36
treed623142b70e2f3b9861c715738694986fdd9db9b
parent289a007b98b06d9ce4be24e2dda43f6821687e70
RISC-V: KVM: Add in-kernel virtualization of AIA IMSIC

We can have AIA IMSIC support for both HS-level and VS-level but
the VS-level IMSICs are optional. We use the VS-level IMSICs for
Guest/VM whenever available otherwise we fallback to software
emulation of AIA IMSIC.

This patch adds in-kernel virtualization of AIA IMSIC.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_aia.h
arch/riscv/kvm/Makefile
arch/riscv/kvm/aia_imsic.c [new file with mode: 0644]