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] several Qs about domain live migration

To: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Subject: Re: [Xen-devel] several Qs about domain live migration
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 18 Nov 2008 08:13:11 +0000
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 18 Nov 2008 00:13:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081118011724.GA8523@xxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclJVX8WvcChlLVIEd2wawAWy6hiGQ==
Thread-topic: [Xen-devel] several Qs about domain live migration
User-agent: Microsoft-Entourage/11.4.0.080122
On 18/11/08 01:17, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx> wrote:

> We are trying to fix a HVM live migration bug, and found "Use main memory for
> video memory" in r18383 cause guest hang after restore.
> 
> Following changes make all valid pages migrated, including vlapic page
> (0xFEE00), and share page(0xFFFFF), so an extra memory population for these 2
> pages would override previous mapping then cause guest hang (if using vlapic
> acceleration).
> 
> What do you think of possible fixing? Skipping these specific pages in
> xc_domain_save except video memory, or change the HVM domain creation.

Try changing gmfn_to_mfn(FOREIGNDOM, l1e_get_pfn(nl1e)) in mod_l1_entry()
to:
  mfn = gfn_to_mfn(FOREIGNDOM, l1e_get_pfn(nl1e), &p2mt);
  if ( !p2m_is_ram(p2mt) || (mfn == INVALID_MFN) )
    ....

This will prevent foreign mappings of 'mmio' pages. Pretty sensible and will
fix this problem. 

 -- Keir



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