hvmloader: add high memory e820 region if needed
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 15 Mar 2016 11:22:04 +0000 (12:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Mar 2016 11:22:04 +0000 (12:22 +0100)
commit24e3e3553b105181a471f16a227331bf427aca3d
tree3e5f59403ae297538450b7932288e70545082dc5
parent79713ed0a94cb5fa01b994645a31c4960a6c483e
hvmloader: add high memory e820 region if needed

If the MMIO hole is large and hvmloader needs to relocate memory to
immediately above the 4 GiB boundary, the e820 presented to the guest
will not have a RAM region above 4 GiB.

e.g., a guest with 3 GiB of memory and a 2 GiB MMIO hole will only see
2 GiB.

The required e820 memory region above 4 GiB needs to be added, and not
just filled in.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/hvmloader/e820.c