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] Some issues in recent ChangeSet.

To: "Yu, Ke" <ke.yu@xxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Some issues in recent ChangeSet.
From: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Date: Fri, 15 Sep 2006 11:11:25 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Steven Hand <Steven.Hand@xxxxxxxxxxxx>, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>, "Zheng, Jeff" <jeff.zheng@xxxxxxxxx>
Delivery-date: Thu, 14 Sep 2006 20:12:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <117E3EB5059E4E48ADFF2822933287A4F92CD4@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <117E3EB5059E4E48ADFF2822933287A4F92CD4@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Thu, Sep 14, 2006 at 01:47:11PM +0800, Yu, Ke wrote:
> Keir Fraser wrote:
> > On 4/9/06 8:19 am, "Yu, Ke" <ke.yu@xxxxxxxxx> wrote:
> > 
> >> I also see HVM domain reboot failed again in recent cset.
> >> 
> >> A quick look showes qemu-dm and HV use diferrent MFN to map
> >> shared_page after rebooting, this will cause DM event channel
> >> binding failure. In my box, DM use mfn 0x2d406  while HV use mfn
> >> 0x2d426 to map shared page, they differ 0x20 pages. Looks like
> >> xc_get_pfn_list is incorrect after rebooting. I will look into this
> >> issue. 
keir,
same issue happened when vmx save/restore.
ke's short-term patch can fix it.
any comments?

thanks,

> > 
> > Short-term fix: For HVM guests, return frame list by scanning the P2M
> > table so you definitely get the frames in the right order (currently
> > it always scans the ownership linked list, which actually has no
> > guaranteed order). 
> > 
> > Long-term fix: Always map HVM guest pages by PFN rather than MFN.
> > This will avoid domain0 needing to manually do P->M translations --
> > it'll instead happen automatically inside Xen. Much neater.
> > 
> > Overall we should be aiming to get read of get_pfn_list entirely,
> > especially for HVM guests.
> > 
> >  -- Keir
> 
> Hi Keir, 
> 
> Please see the attached short-term fix. Hopefully, it can be applied before 
> 3.0.3. 
> 
> I have tested it with several memory combinations, and all pass:
> ia32 guest, ia32 host, 1G guest mem
> ia32 pae guest, ia32pae host, 1.5G guest mem,
> ia32 guest, ia32e host, 1G guest mem
> ia32e guest, ia32e host, 4G guest mem
> ia32e guest, ia32e host, 8G guest mem
>  
> Best Regards
> Ke
> ----------------
> Intel Opensource Technology Center


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


-- 
best rgds,
edwin

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