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/
Home Products Support Community News


Re: [Xen-devel] [RFC] Add stubdomain support

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] Add stubdomain support
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 11 Feb 2008 19:14:16 +0000
Delivery-date: Mon, 11 Feb 2008 11:13:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080211174038.GC9475@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: Achs4ksxicwC8djVEdyf8wAWy6hiGQ==
Thread-topic: [Xen-devel] [RFC] Add stubdomain support
User-agent: Microsoft-Entourage/
On 11/2/08 17:40, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

> - Setup a xen-elf cross-compilation environment in stubdom/cross-root
> - Add a POSIX layer on top of Mini-OS by linking against the newlib C library
>   and lwIP, and implementing the Unixish part in mini-os/lib/sys.c
> - Cross-compile zlib and libpci too.
> - Add an xs.h-compatible layer on top of Mini-OS' xenbus.
> - Cross-compile libxc with an additional xc_minios.c and a few things
> disabled.

You hack the libxc headers a bit: is this because you need different
definitions of certain things in minios environment (seems unlikely for
things like memory barriers and page sizes) or because of namespace
conflicts? If the latter we should be able to clean up namespace usage and
avoid ifdef'ery. We don't really want CONFIG_MINIOS all over the place, it
should be able to behave nicely like any other POSIXish host of libxc.

Apart from that it seems pretty clean. I suppose others may comment on the
cleanliness of the changes to qemu code. Trying this patch out is probably
the quickest way for me to find out how you've integrated into the build
process. e.g., do you symlink out to libxc and so on, and store the object
files and build targets somewhere under stubdom/?

 -- Keir

Xen-devel mailing list