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

[Xen-devel] [PATCH 4/4] Enable VirtualPC 2007 run on top of XEN: add_write_for_data_pages


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Su, Disheng" <disheng.su@xxxxxxxxx>
  • Date: Fri, 1 Feb 2008 14:24:31 +0800
  • Delivery-date: Thu, 31 Jan 2008 22:29:25 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Achkmxrn4eobpI0MSWW/E4usQKBviw==
  • Thread-topic: [PATCH 4/4] Enable VirtualPC 2007 run on top of XEN: add_write_for_data_pages

There are two cases for CR0.wp emulation: one is for page table write
emulation, another is for data page write emulation. We found more than
100,000 page faults per second for the later case. This case can be
optimized by setting _PAGE_RW bit for this ReadOnly data page when guest
CR0.wp is 0, and remove it when CR0.wp is 1. With this patch, page
faults is reduced to about 10,000 at average.

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>
Signed-off-by: Disheng Su <disheng.su.com>

Attachment: 4_set_write_access_for_data_pages.patch
Description: 4_set_write_access_for_data_pages.patch

_______________________________________________
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®.