]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
libxc: rework of domain builder's page table handler
authorJuergen Gross <jgross@suse.com>
Thu, 12 Nov 2015 13:43:35 +0000 (14:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 13:19:18 +0000 (13:19 +0000)
commit81a76e4b12961a9f54f5021809074196dfe6dbba
treecd8075c4fef62e12f389846963fd12748d22bd93
parentcd353959cdfbe06c2a6abfd73f03f40b84e1e3f1
libxc: rework of domain builder's page table handler

In order to prepare a p2m list outside of the initial kernel mapping
do a rework of the domain builder's page table handler. The goal is
to be able to use common helpers for page table allocation and setup
for initial kernel page tables and page tables mapping the p2m list.
This is achieved by supporting multiple mapping areas. The mapped
virtual addresses of the single areas must not overlap, while the
page tables of a new area added might already be partially present.
Especially the top level page table is existing only once, of course.

Currently restrict the number of mappings to 1 because the only mapping
now is the initial mapping created by toolstack. There should not be
behaviour change and guest visible change introduced.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_dom_x86.c
tools/libxc/xg_private.h