]> xenbits.xensource.com Git - xen.git/commit
x86: expand arch_shared_info to support linear p2m list
authorJuergen Gross <jgross@suse.com>
Fri, 9 Jan 2015 16:21:26 +0000 (17:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:21:26 +0000 (17:21 +0100)
commit50bd1f0825339dfacde471df7664729216fc46e3
treeb769f952cb5dfa8f52c119c425ba407a662e00aa
parentad40b1fbe41b2fc3a0dfddbbe07a9678c8cd1921
x86: expand arch_shared_info to support linear p2m list

The x86 struct arch_shared_info field pfn_to_mfn_frame_list_list
currently contains the mfn of the top level page frame of the 3 level
p2m tree, which is used by the Xen tools during saving and restoring
(and live migration) of pv domains and for crash dump analysis. With
three levels of the p2m tree it is possible to support up to 512 GB of
RAM for a 64 bit pv domain.

A 32 bit pv domain can support more, as each memory page can hold 1024
instead of 512 entries, leading to a limit of 4 TB.

To be able to support more RAM on x86-64 switch to an additional
virtual mapped p2m list.

This patch expands struct arch_shared_info with a new p2m list virtual
address, the root of the page table root and a p2m generation count.
The new information is indicated by the domain to be valid by storing
a non-zero value into the page table root member.

To avoid build failures in the tools directory the checked structure
sizes must be adapted, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
tools/include/xen-foreign/reference.size
xen/include/public/arch-x86/xen.h