summaryrefslogtreecommitdiff
path: root/arch/riscv/kvm/Makefile
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-09-27 17:10:06 +0530
committerAnup Patel <anup@brainfault.org>2021-10-04 15:51:47 +0530
commit9f7013265112a92340cef5debec8d02ec8d1de06 (patch)
tree4f77126d24e2124aa992f910012f49ce260602fa /arch/riscv/kvm/Makefile
parent34bde9d8b9e6e5249db3c07cf1ebfe75c23c671c (diff)
downloadlinux-starfive-9f7013265112a92340cef5debec8d02ec8d1de06.tar.gz
linux-starfive-9f7013265112a92340cef5debec8d02ec8d1de06.tar.bz2
linux-starfive-9f7013265112a92340cef5debec8d02ec8d1de06.zip
RISC-V: KVM: Handle MMIO exits for VCPU
We will get stage2 page faults whenever Guest/VM access SW emulated MMIO device or unmapped Guest RAM. This patch implements MMIO read/write emulation by extracting MMIO details from the trapped load/store instruction and forwarding the MMIO read/write to user-space. The actual MMIO emulation will happen in user-space and KVM kernel module will only take care of register updates before resuming the trapped VCPU. The handling for stage2 page faults for unmapped Guest RAM will be implemeted by a separate patch later. [jiangyifei: ioeventfd and in-kernel mmio device support] Signed-off-by: Yifei Jiang <jiangyifei@huawei.com> 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>
Diffstat (limited to 'arch/riscv/kvm/Makefile')
-rw-r--r--arch/riscv/kvm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kvm/Makefile b/arch/riscv/kvm/Makefile
index 9e8133c898dc..1e1c3e1e4e1b 100644
--- a/arch/riscv/kvm/Makefile
+++ b/arch/riscv/kvm/Makefile
@@ -10,4 +10,4 @@ KVM := ../../../virt/kvm
obj-$(CONFIG_KVM) += kvm.o
kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/binary_stats.o \
- main.o vm.o mmu.o vcpu.o vcpu_exit.o vcpu_switch.o
+ $(KVM)/eventfd.o main.o vm.o mmu.o vcpu.o vcpu_exit.o vcpu_switch.o