]> 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)
commit6743c8ec8ac91eb89f74df19957b5994e28fe5b3
tree09d788cf8996efb330d2118eb214bbdb6878780b
parent4fe3b990d6712e68c8c5958a193d1e501b4e46de
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