]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:07 +0000 (11:15 +0200)
commitae4760d4e450dff0a8880d91d7b546a818c619a7
tree1af7904fffdb358856f753bd018639c8035530bc
parent9586ed38bdd7f4ab157ffd5abc2d396b966eef78
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: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/arm.c
arch/arm/kvm/mmu.c