public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix QEMU target detection
@ 2007-07-09 17:35 Anthony Liguori
       [not found] ` <1184002527532-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2007-07-09 17:35 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Anthony Liguori

This looks like a typo.  I think the intention of the if is to normalize
i[3456]86 to i386 since that's the target name for QEMU.

Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/configure b/configure
index d9292fe..e4d1ec6 100755
--- a/configure
+++ b/configure
@@ -74,7 +74,7 @@ fi
 
 target_cpu() {
     if [[ $(uname -m) = i?86 ]]; then
-	echo x86_64
+	echo i386
     else
 	uname -m
     fi

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix QEMU target detection
       [not found] ` <1184002527532-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2007-07-10  8:11   ` Avi Kivity
       [not found]     ` <46933F4C.2080008-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2007-07-10  8:11 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Anthony Liguori wrote:
> This looks like a typo.  I think the intention of the if is to normalize
> i[3456]86 to i386 since that's the target name for QEMU.
>
> Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>
> diff --git a/configure b/configure
> index d9292fe..e4d1ec6 100755
> --- a/configure
> +++ b/configure
> @@ -74,7 +74,7 @@ fi
>  
>  target_cpu() {
>      if [[ $(uname -m) = i?86 ]]; then
> -	echo x86_64
> +	echo i386
>      else
>  	uname -m
>      fi
>   

This is intentional.  It allows migration from 32-bit hosts to 64-bit 
hosts.  Another side effect is that 64-bit guests can be run on 64-bit 
hosts with 32-bit userspace.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix QEMU target detection
       [not found]     ` <46933F4C.2080008-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-07-12  2:49       ` Jun Koi
       [not found]         ` <fdaac4d50707111949r41205f12v4b6bef4da1553dbd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jun Koi @ 2007-07-12  2:49 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On 7/10/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> Anthony Liguori wrote:
> > This looks like a typo.  I think the intention of the if is to normalize
> > i[3456]86 to i386 since that's the target name for QEMU.
> >
> > Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> >
> > diff --git a/configure b/configure
> > index d9292fe..e4d1ec6 100755
> > --- a/configure
> > +++ b/configure
> > @@ -74,7 +74,7 @@ fi
> >
> >  target_cpu() {
> >      if [[ $(uname -m) = i?86 ]]; then
> > -     echo x86_64
> > +     echo i386
> >      else
> >       uname -m
> >      fi
> >
>
> This is intentional.  It allows migration from 32-bit hosts to 64-bit
> hosts.  Another side effect is that 64-bit guests can be run on 64-bit
> hosts with 32-bit userspace.
>

So now we always install qemu-system-x86-64 even on i686 box? I
noticed this when I installed from git repo today, and it really
confuses.

If so, all the old configuration must be modified to use
qemu-system-x86_64 rather than qemu like before. How about making a
soft-link that points qemu to qemu-system-x86_64?


Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix QEMU target detection
       [not found]         ` <fdaac4d50707111949r41205f12v4b6bef4da1553dbd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-07-13  8:08           ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2007-07-13  8:08 UTC (permalink / raw)
  To: Jun Koi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Jun Koi wrote:
> On 7/10/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
>> Anthony Liguori wrote:
>> > This looks like a typo.  I think the intention of the if is to
>> normalize
>> > i[3456]86 to i386 since that's the target name for QEMU.
>> >
>> > Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>> >
>> > diff --git a/configure b/configure
>> > index d9292fe..e4d1ec6 100755
>> > --- a/configure
>> > +++ b/configure
>> > @@ -74,7 +74,7 @@ fi
>> >
>> >  target_cpu() {
>> >      if [[ $(uname -m) = i?86 ]]; then
>> > -     echo x86_64
>> > +     echo i386
>> >      else
>> >       uname -m
>> >      fi
>> >
>>
>> This is intentional.  It allows migration from 32-bit hosts to 64-bit
>> hosts.  Another side effect is that 64-bit guests can be run on 64-bit
>> hosts with 32-bit userspace.
>>
>
> So now we always install qemu-system-x86-64 even on i686 box? I
> noticed this when I installed from git repo today, and it really
> confuses.
>
> If so, all the old configuration must be modified to use
> qemu-system-x86_64 rather than qemu like before. How about making a
> soft-link that points qemu to qemu-system-x86_64?
>

Distributions can rename as they see fit.  People on this list, or
others who compile from source can surely cope...

If anything, this will make scripts more common across different machines.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-13  8:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 17:35 [PATCH] Fix QEMU target detection Anthony Liguori
     [not found] ` <1184002527532-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-07-10  8:11   ` Avi Kivity
     [not found]     ` <46933F4C.2080008-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-12  2:49       ` Jun Koi
     [not found]         ` <fdaac4d50707111949r41205f12v4b6bef4da1553dbd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-13  8:08           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox