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] Swapping of PT pages

To: Mike Sun <msun@xxxxxxxxxx>
Subject: Re: [Xen-devel] Swapping of PT pages
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Tue, 19 Feb 2008 12:49:29 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 19 Feb 2008 12:50:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <e4e579070802191227q72bc5682g1e6be01ad19519e4@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: msun@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <e4e579070802191227q72bc5682g1e6be01ad19519e4@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-15)
On Tuesday, 19 February 2008 at 15:27, Mike Sun wrote:
> Hi --
> 
> In examining the domain save/migration code (xc_domain_save.c), I came
> across the step in which page table page frames in memory are
> canonicalized so that mfns are translated to pfns before those pages
> are written out to the saved image/destination host.  This makes me
> wonder if a PV host is allowed to swap out page table pages if it so
> decided; if swapping of PT pages were allowed, then wouldn't certain
> page table pages not be canonicalized (since they would be on disk,
> not in any of the machine frames).  This obviously be bad.
> 
> Am I understanding things incorrectly?

Have a look at take_machine_down in
linux-.../drivers/xen/core/machine_reboot.c.

Before the suspend call is issued, the guest uses mm_pin_all to
prevent this scenario from happening.

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

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