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-ia64-devel

[Xen-devel] Arch dependent tools/libxc?

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Arch dependent tools/libxc?
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Wed, 18 May 2005 11:41:05 +0800
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 18 May 2005 03:40:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcVbW2ukBKdAR9XHQya5T9SsCMzvQQ==
Thread-topic: Arch dependent tools/libxc?
Hi, list,
        When trying to add support for multiple domains on IPF/VTI,
immediately we realized current tools/libxc too x86 specific, like
xc_linux_build.c, xc_linux_save.c, etc. which are always compiled
assumed upon x86 vcpu_guest_context_t. Ideally they should only be
compiled upon specific platform.

        One solution is to add bunch of boring "ifdef __x86_32... ifdef
__ia64__" in Makefile, which however gonna pollute many places. Since
tools/libxc is the place coupled with arch context most tightly, a
better option may be to move those files into arch dependent directory
like tools/libxc/{x86, ia64, etc}:
Xc_linux_build.c
Xc_plan9_build.c
Xc_vmx_build.c
Xc_linux_save.c
Xc_linux_restore.c
Xc_ptrace.c 
Xc_ptrace_core.c
And some header files like linux_boot_params.h

        A brief search seems to indicate most directories under tools
are high level, common features, which can go first option when demand.
"Misc" directory is bit of problem, which can easily handled by similar
way as libxc.

        Comments? ;-)

Thanks,
Kevin

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

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