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] Re: arch-specific xc.c code?

To: Hollis Blanchard <hollisb@xxxxxxxxxx>, Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: arch-specific xc.c code?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 31 Aug 2006 20:14:57 +0100
Cc: Alistair Tse <atse@xxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 31 Aug 2006 12:15:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1157051281.9307.17.camel@xxxxxxxxxxxxxxxxxxxxx>
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: AcbNMb8b/eFTuDkkEdu48AAKle7CWA==
Thread-topic: [Xen-devel] Re: arch-specific xc.c code?
User-agent: Microsoft-Entourage/11.2.5.060620


On 31/8/06 8:08 pm, "Hollis Blanchard" <hollisb@xxxxxxxxxx> wrote:

>> I'd like the xc object to be a direct reflection of what's in libxenguest and
>> libxenctrl, so if you've got an arch-specific #ifdef that puts this function
>> into libxc, then yes, just using that would be fine.  (I don't see that
>> function in my tree, so I can't see for myself which library it ends up in).
> 
> Yeah, I'm adding that function to libxc but wasn't sure how to modify
> xc.c to expose it. In libxc, whole files are conditionally built (so
> technically no ifdef is used), but I will add an ifdef to xc.c. Thanks.

It'd be nice to have arch-specific files/directories for the Python wrapper
too, if that's not too much hassle. An arch-specific file that exported an
arch-specific python object that gets attached to the main xc object with
name 'arch' would be kind of neat (so that you get at arch-specific
functions as e.g., xc.arch.alloc_real(...), making the arch-specific calls
immediately obvious).

 -- Keir



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

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