RISC-V: KVM: Expose APLIC registers as attributes of AIA irqchip
authorAnup Patel <apatel@ventanamicro.com>
Thu, 15 Jun 2023 07:33:51 +0000 (13:03 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 18 Jun 2023 15:54:50 +0000 (21:24 +0530)
commit289a007b98b06d9ce4be24e2dda43f6821687e70
tree9a5046e162f830067e3fe474e34664d5fada3a66
parent74967aa208e257d0c26a7dd7dd93a8902b2203e4
RISC-V: KVM: Expose APLIC registers as attributes of AIA irqchip

We expose APLIC registers as KVM device attributes of the in-kernel
AIA irqchip device. This will allow KVM user-space to save/restore
APLIC state using KVM device ioctls().

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/include/uapi/asm/kvm.h
arch/riscv/kvm/aia_aplic.c
arch/riscv/kvm/aia_device.c