aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/kvm/Kconfig
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-09-27 17:10:09 +0530
committerAnup Patel <anup@brainfault.org>2021-10-04 16:02:19 +0530
commit9d05c1fee837572d91f2b5463d67d4e098987e95 (patch)
tree20bd9ca4c62f902083a58f40b90f9a3064246014 /arch/riscv/kvm/Kconfig
parentRISC-V: KVM: Implement VMID allocator (diff)
downloadlinux-dev-9d05c1fee837572d91f2b5463d67d4e098987e95.tar.xz
linux-dev-9d05c1fee837572d91f2b5463d67d4e098987e95.zip
RISC-V: KVM: Implement stage2 page table programming
This patch implements all required functions for programming the stage2 page table for each Guest/VM. At high-level, the flow of stage2 related functions is similar from KVM ARM/ARM64 implementation but the stage2 page table format is quite different for KVM RISC-V. [jiangyifei: stage2 dirty log 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> Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kvm/Kconfig')
-rw-r--r--arch/riscv/kvm/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kvm/Kconfig b/arch/riscv/kvm/Kconfig
index b42979f84042..633063edaee8 100644
--- a/arch/riscv/kvm/Kconfig
+++ b/arch/riscv/kvm/Kconfig
@@ -23,6 +23,7 @@ config KVM
select PREEMPT_NOTIFIERS
select ANON_INODES
select KVM_MMIO
+ select KVM_GENERIC_DIRTYLOG_READ_PROTECT
select HAVE_KVM_VCPU_ASYNC_IOCTL
select HAVE_KVM_EVENTFD
select SRCU