libxc: support of linear p2m list for migration of pv-domains
authorJuergen Gross <jgross@suse.com>
Thu, 7 Jan 2016 12:36:52 +0000 (13:36 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 7 Jan 2016 12:49:33 +0000 (12:49 +0000)
commit7bf74582b343603cb0826d808cd7da43326452a5
tree1fbe0b2da75f96b95d63f18398dcabec313caaef
parentc2474dfe7588b5c8a05d1a3a458306130f4ce76b
libxc: support of linear p2m list for migration of pv-domains

In order to be able to migrate pv-domains with more than 512 GB of RAM
the p2m information can be specified by the guest kernel via a virtual
mapped linear p2m list instead of a 3 level tree.

Add support for this new p2m format in libxc.

As the sanity checking of the virtual p2m address needs defines for the
xen regions use those defines when doing page table checks as well.
There were two harmless off by one errors in normalise_pagetable()
being fixed by using those defines (xen_last set to 512 instead of
511), the other one is fixed directly.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_sr_common_x86_pv.h
tools/libxc/xc_sr_save_x86_pv.c