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] [PATCH 6/7, RFC] x86_64: basic changes for supporting co

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 6/7, RFC] x86_64: basic changes for supporting compatibility mode guest
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 23 Aug 2006 13:44:06 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Wed, 23 Aug 2006 04:44:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C111EE4C.1456%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <C111EE4C.1456%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (X11/20060725)
  Hi,

> If we do 32-bit dom0 kernel then the tools will pick up the 32-bit version
> of that structure. So this is only an issue for userspace if we want 64-bit
> dom0 to be able to build 32-bit domU's. I suppose this would be nice to
> have.

I think we certainly want to have that.  I'd suggest to have a look at
my kexec bits:

  http://www.suse.de/~kraxel/xen/kexec.html
  http://www.suse.de/~kraxel/patches/

They include a largely rewritten domain builder, adding support for
loading both 32bit and 64bit kernels with the 64bit tools should be easy.

> Obvious thing to do is suffix all the structs and defns in arch-x86_foo.h
> with _32 or _64 as appropriate. Then, at the end of the header, we define
> the non-suffixed versions only if defined(__i386__) or __defined__(x86_64)
> (as appropriate).

I'd suggest to suffix them with $arch instead, so we have the option to
handle even ia64 on x86 machines.

cheers,

  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>
http://www.suse.de/~kraxel/julika-dora.jpeg

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