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] Xen1.2 NetBSD port snapshot available and set_gdt patch

To: Christian Limpach <chris@xxxxxx>
Subject: Re: [Xen-devel] Xen1.2 NetBSD port snapshot available and set_gdt patch for Xen1.2
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 03 Feb 2004 15:36:02 +0000
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 04 Feb 2004 05:58:41 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Tue, 03 Feb 2004 15:54:34 +0100." <0aaf01c3ea65$a47b3400$070414ac@pin>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> yes, although the loader will have to get the setup right:  we need an ELF
> header in front of the symbol table, i.e. the layout after loading should
> be:
>     ...
> __bss_start:
>     bss space
> _end:
>     somewhat mangled ELF header
>     STRTAB/SYMTAB sections (only the STRTAB sections which are referenced by
> a SYMTAB section)
> esym:
> 
> Right now the dumpsym program extracts the mangled header and the required
> sections, we pass this in as an initrd and the kernel then copies the initrd
> to _end and initializes esym from MOD_LEN.  This is fine except that it
> needs 2 files and that's annoying.
> 
> I would add our loader to the domain builder except that it has a 4 clause
> BSD licence and I don't know if you want code in Xen which has the
> advertising clause.  The loader is in the NetBSD tree at
> sys/lib/libsa/loadfile_elf32.c.  grub also includes a loader which sets
> things up correctly...

Yes, I took a look at the GRUB code. It wouldn't be hard to add an
xc_netbsd_build() function I think. Most of the code would be in
common with the Linux builder.

> >  2. The block-device and network I/O rings are now indexed using
> >  non-wrapping counters. e.g. rather than
> >    i = (i + 1) % RING_SIZE;
> >    ent = ring[i];
> >  you do
> >    ent = ring[++i];
> >  There are predefined index types NET_RING_IDX and BLK_RING_IDX.
> 
> That's ent = ring[MASK_NET_{R,T}X_IDX(++i)], right?
> I think I'll use non-wrapping counters when writing the block-device driver
> and I'll apply the mask when accessing the ring counters...

Oops, yes!

 -- Keir


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel