]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Implement MMU notifiers
authorAnup Patel <anup.patel@wdc.com>
Mon, 27 Sep 2021 11:40:10 +0000 (17:10 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 4 Oct 2021 10:33:39 +0000 (16:03 +0530)
commite86d6240c3b3ae00bf45bd2980b2bc627a238985
tree09d788cf8996efb330d2118eb214bbdb6878780b
parenta3d6198d7fbc7a3a642aac54dcb3f461470a584f
RISC-V: KVM: Implement MMU notifiers

This patch implements MMU notifiers for KVM RISC-V so that Guest
physical address space is in-sync with Host physical address space.

This will allow swapping, page migration, etc to work transparently
with 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/Kconfig
arch/riscv/kvm/mmu.c
arch/riscv/kvm/vm.c