diff options
author | Anup Patel <apatel@ventanamicro.com> | 2023-01-10 16:44:25 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-04-21 17:45:48 +0530 |
commit | 54e43320c2ba0c70258a3aea690da38c6ea3293c (patch) | |
tree | 9d3bfea35258817f182404f756f4f5e77063d18e /arch/riscv/kvm/vm.c | |
parent | e290dbb7f73670e06df7f8ec44c3f502c20707d7 (diff) | |
download | linux-next-54e43320c2ba0c70258a3aea690da38c6ea3293c.tar.gz |
RISC-V: KVM: Initial skeletal support for AIA
To incrementally implement AIA support, we first add minimal skeletal
support which only compiles and detects AIA hardware support at the
boot-time but does not provide any functionality.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kvm/vm.c')
-rw-r--r-- | arch/riscv/kvm/vm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/kvm/vm.c b/arch/riscv/kvm/vm.c index 65a964d7e70d..bc03d2ddcb51 100644 --- a/arch/riscv/kvm/vm.c +++ b/arch/riscv/kvm/vm.c @@ -41,6 +41,8 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) return r; } + kvm_riscv_aia_init_vm(kvm); + kvm_riscv_guest_timer_init(kvm); return 0; @@ -49,6 +51,8 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) void kvm_arch_destroy_vm(struct kvm *kvm) { kvm_destroy_vcpus(kvm); + + kvm_riscv_aia_destroy_vm(kvm); } int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) |