x86: constrain MFN range Dom0 may access
authorJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2016 15:10:42 +0000 (16:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2016 15:10:42 +0000 (16:10 +0100)
commit53de839fb40936c074213a0c400e3c959e4ec461
treea3220c1835bd6c61b9435e0058608253d2c50519
parent344e852bf0866dfa9886c8328b23a2563aca8a32
x86: constrain MFN range Dom0 may access

... to that covered by the physical address width supported by the
processor. This implicitly avoids Dom0 (accidentally or due to some
kind of abuse) passing out of range addresses to a guest, which in
turn eliminates this only possibility for PV guests to create PTEs
with one or more reserved bits set.

Note that this is not a security issue due to XSA-77.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain_build.c
xen/arch/x86/mm.c