]> 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)
commitf9110620f35f4835e89a1ee07f69857b7159b367
tree5756df611aa9bb2e7ad1c5cd086ab600f1667857
parent38d21e5b436acdf953e03efd61476cd59d7cac29
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