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

Re: [Xen-devel] [PATCH, RFC] i386: highmem access assistance hypercalls

To: "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] [PATCH, RFC] i386: highmem access assistance hypercalls
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Mon, 27 Oct 2008 08:21:10 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 27 Oct 2008 01:20:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <490261E0.8020007@xxxxxxxx>
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>
References: <48F8CB2D.76E4.0078.0@xxxxxxxxxx> <490261E0.8020007@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 25.10.08 02:01 >>>
>Jan Beulich wrote:
>> While looking at the origin of very frequently executed hypercalls I
>> realized that the high page accessor functions in Linux would be good
>> candidates to handle in the hypervisor - clearing or copying to/from
>> a high page is a pretty frequent operation (provided there's enough
>> memory in the domain). While prior to the first submission I only
>> measured kernel builds (where the results are not hinting at a
>> meaningful improvement), I now found time to do a more specific
>> analysis: page clearing is being improved by about 20%, page copying
>> doesn't seem to significantly benefit (though that may be an effect of
>> the simplistic copy_page() implementation Xen currently uses) -
>> nevertheless I would think that if one function is supported by the
>> hypervisor, then the other should also be.
>>
>> The hypervisor patch is below (using temporary numbers for the newly
>> added sub-hypercalls), the Linux patch didn't change over the first
>> submission (if the patch here is acceptable, I'll create a version
>> that applies to the 2.6.18 tree).
>>
>> Opinions?
>>   
>
>Do you have any thoughts about what it would take to make this be useful 
>in a pvops kernel?  If the Novell kernel is the only user, it seems like 
>a bit of a dead end.

I don't see the difficulty here: Just add two new operations to pv ops.
If it won't get done before we switch to the pv ops kernel (which implies
full functionality in Dom0 and DomU), I'd certainly merge up this and any
other changes we carry along.

Jan


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