x86: add address validity check to guest_map_l1e()
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:29:43 +0000 (09:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:29:43 +0000 (09:29 +0200)
commitd06a0d715ec1423b6c42141ab1b0ff69a3effb56
tree9cbde19eaaa3ffab5e14cecf089efd52b48a0dab
parent40d66baa46ca8a9ffa6df3e063a967d08ec92bcf
x86: add address validity check to guest_map_l1e()

Just like for guest_get_eff_l1e() this prevents accessing as page
tables (and with the wrong memory attribute) internal data inside Xen
happening to be mapped with 1Gb pages.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/paging.h