diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2014-11-27 10:35:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-03 19:49:07 -0700 |
commit | 7b3d155fd3d886f2766d42bde3ff4116bd95994c (patch) | |
tree | c4bd8a9a89ec9e18a31ba345a0dd9b73e5f8a325 /Makefile | |
parent | d6f5e8769d9bc6c7ec58669c940537cca63e0b73 (diff) | |
download | lwn-7b3d155fd3d886f2766d42bde3ff4116bd95994c.tar.gz lwn-7b3d155fd3d886f2766d42bde3ff4116bd95994c.zip |
arm/arm64: KVM: Introduce stage2_unmap_vm
commit 957db105c99792ae8ef61ffc9ae77d910f6471da upstream.
Introduce a new function to unmap user RAM regions in the stage2 page
tables. This is needed on reboot (or when the guest turns off the MMU)
to ensure we fault in pages again and make the dcache, RAM, and icache
coherent.
Using unmap_stage2_range for the whole guest physical range does not
work, because that unmaps IO regions (such as the GIC) which will not be
recreated or in the best case faulted in on a page-by-page basis.
Call this function on secondary and subsequent calls to the
KVM_ARM_VCPU_INIT ioctl so that a reset VCPU will detect the guest
Stage-1 MMU is off when faulting in pages and make the caches coherent.
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions