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)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:49 +0000 (17:18 +0200)
commit332075bc83a401bc1a4deb1caeea1d45bd340866
treeb2a6a712d6be5473851d3fbceaba086b9c3733c0
parentbdcfc46a6f2760588d3e59e2ff7abf235a2a513a
ARM: KVM: Unmap IPA on memslot delete/move

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>
(cherry picked from commit df6ce24f2ee485c4f9a5cb610063a5eb60da8267)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
arch/arm/kvm/mmu.c