]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Add initial skeletal KVM support
authorAnup Patel <anup.patel@wdc.com>
Mon, 27 Sep 2021 11:40:01 +0000 (17:10 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 4 Oct 2021 10:10:08 +0000 (15:40 +0530)
commit38d21e5b436acdf953e03efd61476cd59d7cac29
tree5f279c009abe607b00a37949bd1c9f98b864541c
parentefe63f0650fb01cf6619f0c3b37b5bc1aad9d20d
RISC-V: Add initial skeletal KVM support

This patch adds initial skeletal KVM RISC-V support which has:
1. A simple implementation of arch specific VM functions
   except kvm_vm_ioctl_get_dirty_log() which will implemeted
   in-future as part of stage2 page loging.
2. Stubs of required arch specific VCPU functions except
   kvm_arch_vcpu_ioctl_run() which is semi-complete and
   extended by subsequent patches.
3. Stubs for required arch specific stage2 MMU functions.

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>
12 files changed:
arch/riscv/Kconfig
arch/riscv/Makefile
arch/riscv/include/asm/kvm_host.h [new file with mode: 0644]
arch/riscv/include/asm/kvm_types.h [new file with mode: 0644]
arch/riscv/include/uapi/asm/kvm.h [new file with mode: 0644]
arch/riscv/kvm/Kconfig [new file with mode: 0644]
arch/riscv/kvm/Makefile [new file with mode: 0644]
arch/riscv/kvm/main.c [new file with mode: 0644]
arch/riscv/kvm/mmu.c [new file with mode: 0644]
arch/riscv/kvm/vcpu.c [new file with mode: 0644]
arch/riscv/kvm/vcpu_exit.c [new file with mode: 0644]
arch/riscv/kvm/vm.c [new file with mode: 0644]