]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab2bb440d3a236f57a16ce86969ebca890c2fb34
tree5756df611aa9bb2e7ad1c5cd086ab600f1667857
parent69c9acb307a7c93fe6e3c8b9f69c77715f3cd397
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