]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32b8aac762b961bdb29b53ba6c66ee48e84ea071
tree56da139889d80021add9029e12303aecfc773e83
parent183b8c70348e8991bc1bb81710777587b8549f2a
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: a3d6198d7fbc ("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