x86: populate PVHv2 Dom0 physical memory map
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 24 Feb 2017 14:47:03 +0000 (15:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2017 14:47:03 +0000 (15:47 +0100)
commit5427134eae81fc02d20a7ef458686a0c0192b192
tree37210ed11e5d019c64181a77c4a631e12691f42e
parentb96b50004804fb7d6e180784fab9fb25c29844ac
x86: populate PVHv2 Dom0 physical memory map

Craft the Dom0 e820 memory map and populate it. Introduce a helper to remove
memory pages that are shared between Xen and a domain, and use it in order to
remove low 1MB RAM regions from dom_io in order to assign them to a PVHv2 Dom0.

On hardware lacking support for unrestricted mode also craft the identity page
tables and the TSS used for virtual 8086 mode.

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