|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] expand x86 arch_shared_info to support >3 level p2m tree
On 09/08/2014 03:59 PM, Andrew Cooper wrote: On 08/09/14 14:48, Juergen Gross wrote: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. With three levels of the p2m tree it is possible to support up to 512 GB of RAM for a pv domain.Specifically only 64bit PV domains have the 512GB limit. 32bit PV domains have a far larger supported RAM as they can fit twice as many mfns in each p2m page. The padding in this case is a nightmare. For 32 bits arch_shared_info_t is 64 bit aligned due to uint64_t pad[]. This enforces a 4 byte hole before the structure (there are 3 4-byte fields before it in shared_info_t). And before pad[] there is another 4-byte hole. And don't forget: on 32 bits xen_pfn_t is 4 bytes, too. I could either align each new variable explicitly to 8 bytes or I could use a union. As arch_shared_info_t is at the end of shared_info_t I could just ignore the alignment/padding ... What is your preference? Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |