x86: setup PVHv2 Dom0 ACPI tables
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 24 Feb 2017 14:49:19 +0000 (15:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2017 14:49:19 +0000 (15:49 +0100)
commit1d74282c455f58d924520dc55f82f47274e73c92
tree71472bcadf7a927383073b963ca9a68c9fcaa368
parent62869a543d69844383881db3fb10c886edd57517
x86: setup PVHv2 Dom0 ACPI tables

Create a new MADT table that contains the topology exposed to the guest. A
new XSDT table is also created, in order to filter the tables that we want
to expose to the guest, plus the Xen crafted MADT. This in turn requires Xen
to also create a new RSDP in order to make it point to the custom XSDT.

Also, regions marked as E820_ACPI or E820_NVS are identity mapped into Dom0
p2m, plus any top-level ACPI tables that should be accessible to Dom0 and
reside in reserved regions. This is needed because some memory maps don't
properly account for all the memory used by ACPI, so it's common to find ACPI
tables in reserved regions.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain_build.c