[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] several Qs about domain live migration


  • To: 'Keir Fraser' <keir.fraser@xxxxxxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Mon, 17 Nov 2008 15:49:21 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc:
  • Delivery-date: Sun, 16 Nov 2008 23:49:55 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AclIgMzamt7ZjxorS8SJFuCrXusoMAAB5+p7AAAN/sA=
  • Thread-topic: [Xen-devel] several Qs about domain live migration

>From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx] 
>Sent: Monday, November 17, 2008 3:45 PM
>
>On 17/11/08 06:50, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:
>
>> I didn't find code to check mmio holes. Then how does restore
>> side differentiate normal ram from those holes, for a hvm with
>>> 4G memory?
>
>I don't think the save side transmits entries for non-existent pages.
>

Yes, that's also my original assumption. But after reading code,
I didn't find lines to seperate those non-existence pages. I saw
one of your change (18533) to skip page patches which contain
no valid pages:
+            if ( hvm )
+            {
+                /* Look for and skip completely empty batches. */
+                for ( j = 0; j < batch; j++ )
+                    if ( (pfn_type[j] & XEN_DOMCTL_PFINFO_LTAB_MASK) !=
+                         XEN_DOMCTL_PFINFO_XTAB )
+                        break;
+                if ( j == batch )
+                {
+                    munmap(region_base, batch*PAGE_SIZE);
+                    continue; /* bail on this batch: no valid pages */
+                }
+            }
+            else

But I don't know where XEN_DOMCTL_PFINFO_XTAB may be
set for hvm domain. Could you help spot it to me?

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.