]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
KVM: arm/arm64: Handle hva aging while destroying the vm
authorSuzuki K Poulose <Suzuki.Poulose@arm.com>
Wed, 5 Jul 2017 08:57:00 +0000 (09:57 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 22 Aug 2017 09:58:19 +0000 (06:58 -0300)
commit3a9d6a9b8f2ad1661bf8677e7d3ad6ea0fad18a1
treee9720568b342366a0cd0e6c3a54ef2b7519335b5
parentb0b5fdd7546c802ff714c3bf90b63ec11bd42dd0
KVM: arm/arm64: Handle hva aging while destroying the vm

BugLink: http://bugs.launchpad.net/bugs/1711535
commit 7e5a672289c9754d07e1c3b33649786d3d70f5e4 upstream.

The mmu_notifier_release() callback of KVM triggers cleaning up
the stage2 page table on kvm-arm. However there could be other
notifier callbacks in parallel with the mmu_notifier_release(),
which could cause the call backs ending up in an empty stage2
page table. Make sure we check it for all the notifier callbacks.

Fixes: commit 293f29363 ("kvm-arm: Unmap shadow pagetables properly")
Reported-by: Alex Graf <agraf@suse.de>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/arm/kvm/mmu.c