WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Design question for PV superpage support

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Design question for PV superpage support
From: Mick Jordan <Mick.Jordan@xxxxxxx>
Date: Mon, 02 Mar 2009 19:59:54 -0800
Cc: Dave McCracken <dcm@xxxxxxxx>, Xen Developers List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 02 Mar 2009 20:00:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49AC89D6.7020701@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200903020754.23534.dcm@xxxxxxxx> <200903021200.09999.dcm@xxxxxxxx> <49AC220E.9030000@xxxxxxx> <200903021314.34075.dcm@xxxxxxxx> <49AC89D6.7020701@xxxxxxxx>
Reply-to: Mick.Jordan@xxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080807)
On 03/02/09 17:37, Jeremy Fitzhardinge wrote:
Dave McCracken wrote:
My understanding of save/restore is that it will save your carefully selected 2M pages, cheerfully restore them onto a random set of mfns, then expect your guest to continue running. I haven't studied it enough to know whether your guest at least gets a chance to intervene and fix things after the restore.

Since restore already requires quite a lot of reset, e.g., grant table mappings, on the part of the guest, it seems that checking the validity of any large page mappings should be possible at the same time. Obviously you could get in a big mess if you mapped the code that is going to do the fixup on a large page, but that is unlikely and easily avoidable.
Your guest would need to be in the position to allocate an extra 512 L1 pte pages to replace each shattered 2M page, which could be awkward - and wouldn't have any realistic way to continue if it fails to do so. Perhaps some kind of special pool of pages could be provided to the domain to help it satisfy its memory needs in recovering from a restore-shattered large page.
In general, I think the guest should assume that large page mappings are merely an optimization that (a) might not be possible on domain start due to machine memory fragmentation and (b) that this condition might also occur on restore. Given these, it must always be prepared to function with 4K pages, which implies that it would need to preserve enough page table frame memory to be able revert from large to small pages.

Mick


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>