RISC-V: KVM: Implement VCPU create, init and destroy functions
authorAnup Patel <anup.patel@wdc.com>
Mon, 27 Sep 2021 11:40:02 +0000 (17:10 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 4 Oct 2021 10:11:17 +0000 (15:41 +0530)
commita33c72faf2d73a35d85c8da4b65402a50aa7647c
tree5756df611aa9bb2e7ad1c5cd086ab600f1667857
parent99cdc6c18c2d815e940e81b9b477d469bdd41788
RISC-V: KVM: Implement VCPU create, init and destroy functions

This patch implements VCPU create, init and destroy functions
required by generic KVM module. We don't have much dynamic
resources in struct kvm_vcpu_arch so these functions are quite
simple for KVM RISC-V.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/kvm_host.h
arch/riscv/kvm/vcpu.c