x86/dom0: add extra RAM regions as UNUSABLE for PVH memory map
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 26 Jun 2018 06:48:14 +0000 (08:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Jun 2018 06:48:14 +0000 (08:48 +0200)
commite8e58be2b77708fd4d6ba6bca3f70bc507fde4be
treedea650286efda56d3db3cc37bcba09943376e7f2
parente017c882ef8bc1301054f3b4e341fb76f8affb8c
x86/dom0: add extra RAM regions as UNUSABLE for PVH memory map

When running as PVH Dom0 the native memory map is used in order to
craft a tailored memory map for Dom0 taking into account it's memory
limit.

Dom0 memory is always going to be smaller than the total amount
of memory present on the host, so in order to prevent Dom0 from
relocating PCI BARs over RAM regions mark all the RAM regions not
available to Dom0 as UNUSABLE in the memory map.

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