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: [PATCH 1/4][Xen-devel] X86 microcode: cancel redundant input paramet

To: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [PATCH 1/4][Xen-devel] X86 microcode: cancel redundant input parameter of microcode functions
From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Date: Thu, 22 Jan 2009 18:54:15 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Thu, 22 Jan 2009 02:54:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200901220942.02201.Christoph.Egger@xxxxxxx>
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: <706158FABBBA044BAD4FE898A02E4BC2223BD253@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <200901220942.02201.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acl8bVq53rjwCYBvSXC46okFypaLWgAEK2Sw
Thread-topic: [PATCH 1/4][Xen-devel] X86 microcode: cancel redundant input parameter of microcode functions
Christoph Egger wrote:
> On Thursday 22 January 2009 04:08:21 Liu, Jinsong wrote:
>> X86 microcode: cancel redundant input parameter of microcode
>> functions 
>> 
>> Cancel redundant input parameter 'uci', since it can get from
>> another input parameter 'cpu' as index. 
>> 
>> Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
> 
> I added the parameter 'uci' to reduce dependency on a global variable.
> That improves reentrancy and cache locality.
> 
> If you want to go a step forward rather back, then remove the 'cpu'
> parameter instead.
> 
> Christoph

I think the input parameter 'cpu' is better than 'uci' since 'cpu' is much 
clear to developer with explicit meaning, so between the 2 redundant parameters 
'uci' and 'cpu', we should remove 'uci', just like what native linux microcode 
functions do.

As for cache locality, it's not important for microcode functions since it's 
not in key path, seldom be called. BTW, we'd better keep consistent with native 
linux code for the sake of futher porting and upgrade, you know, the latest 
linux kernel (2.6.28) still has some issues for microcode ...

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