Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 3/4] Enable VirtualPC 2007 run on top of XEN: REPS prefix emulation
From: "Su, Disheng" <disheng.su@xxxxxxxxx>
Date: Fri, 1 Feb 2008 14:24:24 +0800
Delivery-date: Thu, 31 Jan 2008 22:28:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchkmxcHQwHey2ZwTRS1yh1TOAqD+g==
Thread-topic: [PATCH 3/4] Enable VirtualPC 2007 run on top of XEN: REPS prefix emulation
REPS prefix emulation for INS and OUTS is already in xen. Can we enable
REPS for "stos" and "movs" in paging mode? Although it doesn't benefit a
lot for normal hvm guest, in virtualpc case, I have to do that.
VirtualPC will call "reps stos"(ecx=0x400, eax=0) a lot, about 1000
times per second. It seems to clear a L1 page table page, it can't be
fast unshadowed in check_for_early_unshadow and it's even ReadOnly in
guest page table(CR0.wp = 0). So we get 0x400 * 1000 times page faults
per second, so CPU cycle is almost wasted on it.


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

Attachment: 3_emualte_reps_prefix.patch
Description: 3_emualte_reps_prefix.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 3/4] Enable VirtualPC 2007 run on top of XEN: REPS prefix emulation, Su, Disheng <=