]> 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)
commitc3418a2d44b573c188afe047f7c3c2354d853fc6
tree56da139889d80021add9029e12303aecfc773e83
parentbdf2074c36ff2ec1e88ae41beb6e104f4e7f0cff
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: 4fe3b990d671 ("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