]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ARM: KVM: Unmap IPA on memslot delete/move
authorEric Auger <eric.auger@linaro.org>
Fri, 6 Jun 2014 09:10:23 +0000 (11:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jun 2015 19:25:37 +0000 (12:25 -0700)
commit0aa06a1a546ecada733a2596df60e0665d8ab778
treebd21c212cea80b548d3c76cd10dedf19441f8a84
parent19a2d45ac657ab9bee3e252a84d875a41ec49142
ARM: KVM: Unmap IPA on memslot delete/move

commit df6ce24f2ee485c4f9a5cb610063a5eb60da8267 upstream.

Currently when a KVM region is deleted or moved after
KVM_SET_USER_MEMORY_REGION ioctl, the corresponding
intermediate physical memory is not unmapped.

This patch corrects this and unmaps the region's IPA range
in kvm_arch_commit_memory_region using unmap_stage2_range.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kvm/arm.c
arch/arm/kvm/mmu.c