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

[Xen-ia64-devel] [PATCH] XEN: accelerate guest tr search.


  • To: <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
  • Date: Thu, 2 Mar 2006 21:09:34 +0800
  • Delivery-date: Thu, 02 Mar 2006 13:09:59 +0000
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcY9+owe5F9SiyzmR9Wg5IjDZG3p4A==
  • Thread-topic: [Xen-ia64-devel] [PATCH] XEN: accelerate guest tr search.

Guest has 8 I/D TR entries, when tlb miss happens, VMM will check these
8 TR entries to see whether corresponding tlb entry can be found. In
fact, guest 
may not use all of these 8 entry, for example, linux only uses first 2
ITR and 
first 4 DTR(maybe not exact). I add two members in vcpu struct,
itr_maxslot, 
dtr_maxslot to record max entry number of guest ITR and DTR which are
used by 
guest. So when VMM searches guest TRs, it doesn't need to check all TRs,
just 
those used by guest. Since searching guest TR is a frequent operation,
this patch
should improve performance of dom0 and domU in theory. I don't have data
:-).

Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>

Thanks,
-Anthony 

Attachment: accelerate_guest_tr_search.patch
Description: accelerate_guest_tr_search.patch

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

 


Rackspace

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