]> xenbits.xensource.com Git - xen.git/commit
arch/arm: unmap partially-mapped memory regions
authorArianna Avanzini <avanzini.arianna@gmail.com>
Mon, 1 Sep 2014 23:47:34 +0000 (01:47 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 3 Sep 2014 11:49:37 +0000 (12:49 +0100)
commit4b25423aee137f33f136f539af2d85c7df2b7566
tree9e0cee9185ee9d94751c3cac9887d5fbf462c0c1
parent2add6eaf5b66f558d711d28c9cb5761eae2d1368
arch/arm: unmap partially-mapped memory regions

This commit modifies the function apply_p2m_changes() so that it
destroys changes performed while mapping a memory region, if errors are
seen during the operation. The implemented behaviour includes destroying
only mappings created during the latest invocation of apply_p2m_changes().
This is useful to avoid that memory areas remain partially accessible
to guests.

Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Paolo Valente <paolo.valente@unimore.it>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Julien Grall <julien.grall@citrix.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Tim Deegan <tim@xen.org>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Eric Trudeau <etrudeau@broadcom.com>
Cc: Viktor Kleinik <viktor.kleinik@globallogic.com>
Cc: Andrii Tseglytskyi <andrii.tseglytskyi@globallogic.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c