KVM: RISC-V: Unmap stage2 mapping when deleting/moving a memslot
authorSean Christopherson <seanjc@google.com>
Thu, 4 Nov 2021 16:41:06 +0000 (16:41 +0000)
committerAnup Patel <anup@brainfault.org>
Mon, 22 Nov 2021 05:06:16 +0000 (10:36 +0530)
commit756e1fc16505c31c9f86b602fcb8e2bc55c4b7e5
tree56da139889d80021add9029e12303aecfc773e83
parent136057256686de39cc3a07c2e39ef6bc43003ff6
KVM: RISC-V: Unmap stage2 mapping when deleting/moving a memslot

Unmap stage2 page tables when a memslot is being deleted or moved.  It's
the architectures' responsibility to ensure existing mappings are removed
when kvm_arch_flush_shadow_memslot() returns.

Fixes: 9d05c1fee837 ("RISC-V: KVM: Implement stage2 page table programming")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
arch/riscv/kvm/mmu.c