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

[Xen-devel] Re: Add stubdomain support

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Add stubdomain support
From: "Mike D. Day" <ncmike@xxxxxxxxxx>
Date: Wed, 13 Feb 2008 08:32:35 -0500
Delivery-date: Wed, 13 Feb 2008 05:33:25 -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>
Organization: IBM Linux Technology Center
References: <20080211174038.GC9475@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: ncmike@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.15+20070412 (2007-04-11)
On 11/02/08 17:40 +0000, Samuel Thibault wrote:
> Hello,
> 
> At last, here is the big patch that adds the stubdomain support.  I
> guess some reviewing will be needed before commiting it.

> diff -r 7b0c0ab0566b extras/mini-os/include/byteswap.h
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/extras/mini-os/include/byteswap.h       Mon Feb 11 17:16:12 2008 +0000
> @@ -0,0 +1,22 @@
> +#ifndef _BYTESWAP_H_
> +#define _BYTESWAP_H_
> +
> +/* Unfortunately not provided by newlib.  */
> +#define bswap_16(x) \
> +    ((((x) & 0xff00) >> 8) | (((x) & 0xff) << 8))
> +
> +#define bswap_32(x) \
> +    ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) | \
> +     (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))
> +
> +#define bswap_64(x) \
> +    ((((x) & 0xff00000000000000ULL) >> 56) | \
> +     (((x) & 0x00ff000000000000ULL) >> 40) | \
> +     (((x) & 0x0000ff0000000000ULL) >> 24) | \
> +     (((x) & 0x000000ff00000000ULL) >>  8) | \
> +     (((x) & 0x00000000ff000000ULL) <<  8) | \
> +     (((x) & 0x0000000000ff0000ULL) << 24) | \
> +     (((x) & 0x000000000000ff00ULL) << 40) | \
> +     (((x) & 0x00000000000000ffULL) << 56))
> +

Perhaps make these inline for type checking.

Just wondering about some of the TODO notes in the patchset. I'll take
a closer look.


Mike

-- 
Mike D. Day
IBM LTC
Cell: 919 412-3900
Sametime: ncmike@xxxxxxxxxx AIM: ncmikeday  Yahoo: ultra.runner
PGP key: http://www.ncultra.org/ncmike/pubkey.asc

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

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