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

[Xen-devel][PATCH] don't split the whole large page while live migration

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH] don't split the whole large page while live migration with EPT
From: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>
Date: Thu, 16 Apr 2009 20:33:34 +0800
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Thu, 16 Apr 2009 05:35:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: Acm+j47r8W6HvIyAQV26sZ57M7N0Hw==
Thread-topic: [Xen-devel][PATCH] don't split the whole large page while live migration with EPT

Before, when HVM guest live migration with EPT, we just write protect all the EPT leaf entries.

Then we know the dirty pages through ept_handle_violation(), and call p2m_change_type()

to put back the write access of the EPT entries. At that time when we use large pages,

we used to split the large page to 4K.

Its not necessary. Alternatively, we can just retain the large page entries,

and put back the write access and mark dirty all the small pages in the large page.

 

The patch attached removes the splitting.

 

Signed-off-by: Xin, Xiaohui <Xiaohui.xin@xxxxxxxxx>

 

 

 

Attachment: logdirty.diff
Description: logdirty.diff

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