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 2/12] Pull necessary Linux PM files

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 2/12] Pull necessary Linux PM files
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Tue, 12 Jun 2007 15:50:40 +0800
Delivery-date: Tue, 12 Jun 2007 00:48:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2940CF8.8F81%Keir.Fraser@xxxxxxxxxxxx>
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: AceW+39jOmNeDI8hQbKl0g0vvKGGDAVPuQRMABoe2rAACJdOpwAADrGw
Thread-topic: [Xen-devel] [PATCH 2/12] Pull necessary Linux PM files
>From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
>Sent: 2007年6月12日 15:43
>
>On 12/6/07 05:33, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:
>
>>> Overall, I think we should pick the cleanest one (x86/32 or x86/64) as
>a
>>> starting point and then bludgeon the code so that it works for the
>other
>>> sub-architecture too. This might involve a new file in the subarch
>>> directories, but only for code that actually really is specific to that
>>> subarch.
>>>
>>
>> But before going this way, I have a question about to which extent we
>> should consider common code instead of subarch duplication. Xen
>> relocate patch merged boot assembly code between 32 and 64,
>> though common lines in head.S are even less than arch differences.
>> Will that make code less readable instead? Do you plan to merge
>> more like entry.S?
>
>Well, a judgment call is required. In the example you cite, entry.S cannot
>be merged because 32-bit and 64-bit assembly code is just plain
>different.
>But for head.S at least I was able to make *most* of the real-mode and
>32-bit protected mode common. I think that's a win, even though 100%
>merging
>in the boot/ directory was not possible.
>
>So the question is really how much merging is likely to be possible in the
>wakeup code (both C and asm, as I see the patch introduces both). My
>guess
>would be quite a lot, perhaps with ifdef for actual register load/save as
>the 64-bit register block is bigger. But you're best placed to say whether
>or not my guess is correct.
>
> -- Keir

I'm inclined to agree with your guess and wakeup part can be seen 
with more common stuff than boot code. Okay, without limitation to 
keep linux stuff strictly, I will start merging them into a Xen specific 
version.

Thanks,
Kevin

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