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] inline VMX functions

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] inline VMX functions
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 13 Nov 2006 08:22:21 +0000
Delivery-date: Mon, 13 Nov 2006 00:22:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <B30DA1341B0CFA4893EF8A36B40B5C5D62ED58@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AccGzGxsIIVOm6GYQlqxIj8TgPNHxgAMGp1d
Thread-topic: [Xen-devel] [PATCH] inline VMX functions
User-agent: Microsoft-Entourage/11.2.5.060620
On 13/11/06 2:35 am, "Li, Xin B" <xin.b.li@xxxxxxxxx> wrote:

> inline VMX functions since most of these functions are called just once.
> 
> Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

Unless the function call is really hot (in an inner loop for example) I
don't believe that the performance benefit of inlining is measurable (or
maybe even exists at all). Against that there are the disadvantages that
debugging from a backtrace becomes much more of a pain (especially that
vmexit handler, which becomes *really* big!), and there's a tendency for
'inline' to spread around like a 'go faster' magic dust, applied to
functions where it really doesn't help. So I'm moderately inclined not to
take the inlining bits of this patch unless you strongly disagree.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>