RISC-V: KVM: Add in-kernel emulation of AIA APLIC
authorAnup Patel <apatel@ventanamicro.com>
Thu, 15 Jun 2023 07:33:50 +0000 (13:03 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 18 Jun 2023 15:54:46 +0000 (21:24 +0530)
commit74967aa208e257d0c26a7dd7dd93a8902b2203e4
tree61979644c6970611ad66a1405884a9ed0c7291eb
parent89d01306e34d6ace24e9708cb443df0e53c06ce0
RISC-V: KVM: Add in-kernel emulation of AIA APLIC

There is no virtualization support in AIA APLIC so we add in-kernel
emulation of AIA APLIC which only supports MSI-mode (i.e. wired
interrupts forwarded to AIA IMSIC as MSIs).

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_aplic.c [new file with mode: 0644]