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] ioemu - Use XEN_TARGET_ARCH

To: Bastian Blank <bastian@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] ioemu - Use XEN_TARGET_ARCH
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jan 2008 13:42:33 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Jan 2008 05:43:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080122132923.GA22493@xxxxxxxxxxxxxxxxxxxxxxx>
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: <20080122132923.GA22493@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Jan 22, 2008 at 02:29:23PM +0100, Bastian Blank wrote:

> Use XEN_TARGET_ARCH instead of uname -m.

Yes, good. I had the following problem doing what in Linux would be a
cross-build: the 64-bit ioemu thought that HOST_LONG_BITS was 4 - this
totally broke HVM live migration for fairly obvious reasons.

Looks like your patch would help us, though I haven't tested it. I have
been using the variant below.

regards
john

diff --git a/tools/Makefile b/tools/Makefile
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -73,7 +73,7 @@ ioemu ioemuinstall:
 ioemu ioemuinstall:
        if [ -f $(IOEMU_DIR)/config-host.mak ] || \
          (cd $(IOEMU_DIR) && sh configure --target-list=$(IOEMU_TARGET) \
-             --prefix=/usr --install=$(INSTALL)); then \
+             --cpu=$(XEN_TARGET_ARCH) --prefix=/usr --install=$(INSTALL)); 
then \
                $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@); \
        fi;
 ioemuclean:
diff --git a/tools/ioemu/configure b/tools/ioemu/configure
--- a/tools/ioemu/configure
+++ b/tools/ioemu/configure
@@ -463,6 +463,10 @@ fi

 fi

+if test "$cpu" = "x86_32"; then
+       cpu="i386"
+fi
+
 # host long bits test
 hostlongbits="32"
 if test "$cpu" = "sparc64" -o "$cpu" = "ia64" -o "$cpu" = "x86_64" -o "$cpu" = 
"alpha"; then


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

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