]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/layout: Correct Xen's idea of its own memory layout
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Feb 2017 15:17:17 +0000 (15:17 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Feb 2017 16:18:38 +0000 (16:18 +0000)
commitc9a4a1c419cebac83a8fb60c4532ad8ccc973dc4
tree82453cfa4fe46cb704a1c70db680e2e9093b17a4
parentc8b5cae4ad086ab12a06b602fe7bc26a548fbcac
x86/layout: Correct Xen's idea of its own memory layout

c/s b4cd59fe "x86: reorder .data and .init when linking" had an unintended
side effect, where xen_in_range() and the tboot S3 MAC were no longer correct.

In practice, it means that Xen's .data section is excluded from consideration,
which means:
 1) Default IOMMU construction for the hardware domain could create mappings.
 2) .data isn't included in the tboot MAC checked on resume from S3.

Adjust the comments and virtual address anchors used to define the regions.

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