* [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
@ 2009-07-07 18:03 Christoph Hellwig
2009-07-08 8:34 ` Kevin Wolf
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-07-07 18:03 UTC (permalink / raw)
To: qemu-devel
Look for the binary as installed by qemu make install instead of
requiring the qemu symlink. Note that we need a couple of regular
expressions to munge the uname output into the architecture name
qemu expects.
Signed-off-by: Christoph Hellwig <hch@lst.de>
diff --git a/common.config b/common.config
index a594632..0a8d5b4 100644
--- a/common.config
+++ b/common.config
@@ -39,6 +39,16 @@ PATH=".:$PATH"
HOST=`hostname -s`
HOSTOS=`uname -s`
+ARCH=`uname -m | \
+ sed -e s/i.86/x86_64/ \
+ -e s/sun4u/sparc/ \
+ -e s/arm.*/arm/ \
+ -e s/sa110/arm/ \
+ -e s/s390x/s390/ \
+ -e s/parisc.*/hppa/ \
+ -e s/ppc.*/powerpc/ \
+ -e s/mips.*/mips/ \
+ -e s/sh[234].*/sh/`
EMAIL=root@localhost # where auto-qa will send its status messages
export HOST_OPTIONS=${HOST_OPTIONS:=local.config}
@@ -88,7 +98,7 @@ export BC_PROG="`set_prog_path bc`"
export PS_ALL_FLAGS="-ef"
-export QEMU_PROG="`set_prog_path qemu`"
+export QEMU_PROG="`set_prog_path qemu-system-$ARCH`"
[ "$QEMU_PROG" = "" ] && _fatal "qemu not found"
export QEMU_IMG_PROG="`set_prog_path qemu-img`"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
2009-07-07 18:03 [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH Christoph Hellwig
@ 2009-07-08 8:34 ` Kevin Wolf
2009-07-08 10:59 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2009-07-08 8:34 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: qemu-devel
Christoph Hellwig schrieb:
> Look for the binary as installed by qemu make install instead of
> requiring the qemu symlink. Note that we need a couple of regular
> expressions to munge the uname output into the architecture name
> qemu expects.
I don't completely understand your goal here. Why would you want to use
the host architecture for the guest, too? If anything this makes tests
behave differently on different hosts. If, say, qemu-system-x86_64 is
available depends on the configure options rather than on the host. And
qemu isn't a symlink AFAIK, but the traditional name of qemu-system-i386
(or has this changed recently?).
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
2009-07-08 8:34 ` Kevin Wolf
@ 2009-07-08 10:59 ` Christoph Hellwig
2009-07-08 11:09 ` Kevin Wolf
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-07-08 10:59 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Christoph Hellwig, qemu-devel
On Wed, Jul 08, 2009 at 10:34:35AM +0200, Kevin Wolf wrote:
> Christoph Hellwig schrieb:
> > Look for the binary as installed by qemu make install instead of
> > requiring the qemu symlink. Note that we need a couple of regular
> > expressions to munge the uname output into the architecture name
> > qemu expects.
>
> I don't completely understand your goal here. Why would you want to use
> the host architecture for the guest, too? If anything this makes tests
> behave differently on different hosts. If, say, qemu-system-x86_64 is
> available depends on the configure options rather than on the host. And
> qemu isn't a symlink AFAIK, but the traditional name of qemu-system-i386
> (or has this changed recently?).
I did this from the kvm point of view where normally host equals guest
(modulo differences like i386 vs x86_64). In my installation qemu was a
symlink, not sure if this was the original or if I did it manually at
some point.
So what method of finding a suitable qemu binary do you suggest instead?
I'm pretty open for doing anything that works.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
2009-07-08 10:59 ` Christoph Hellwig
@ 2009-07-08 11:09 ` Kevin Wolf
2009-07-08 11:21 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2009-07-08 11:09 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: qemu-devel
Christoph Hellwig schrieb:
> On Wed, Jul 08, 2009 at 10:34:35AM +0200, Kevin Wolf wrote:
>> Christoph Hellwig schrieb:
>>> Look for the binary as installed by qemu make install instead of
>>> requiring the qemu symlink. Note that we need a couple of regular
>>> expressions to munge the uname output into the architecture name
>>> qemu expects.
>> I don't completely understand your goal here. Why would you want to use
>> the host architecture for the guest, too? If anything this makes tests
>> behave differently on different hosts. If, say, qemu-system-x86_64 is
>> available depends on the configure options rather than on the host. And
>> qemu isn't a symlink AFAIK, but the traditional name of qemu-system-i386
>> (or has this changed recently?).
>
> I did this from the kvm point of view where normally host equals guest
> (modulo differences like i386 vs x86_64). In my installation qemu was a
> symlink, not sure if this was the original or if I did it manually at
> some point.
I'm not sure that the KVM point of view really matters here. I can see
two possible use cases for qemu: Either we just start it up without a
guest OS to do things like a simple savevm, then TCG is just as good. Or
we boot up a guest OS, then we obviously need the architecture matching
the guest, not the host.
> So what method of finding a suitable qemu binary do you suggest instead?
> I'm pretty open for doing anything that works.
Maybe something like trying qemu-system-x86_64, then qemu-kvm, then
qemu? We could use i386 guests on every host then. If it's accelerated
with KVM, kqemu or not at all doesn't really matter.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
2009-07-08 11:09 ` Kevin Wolf
@ 2009-07-08 11:21 ` Christoph Hellwig
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2009-07-08 11:21 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Christoph Hellwig, qemu-devel
On Wed, Jul 08, 2009 at 01:09:14PM +0200, Kevin Wolf wrote:
> I'm not sure that the KVM point of view really matters here. I can see
> two possible use cases for qemu: Either we just start it up without a
> guest OS to do things like a simple savevm, then TCG is just as good. Or
> we boot up a guest OS, then we obviously need the architecture matching
> the guest, not the host.
Right now we don't use any guest so that it doesn't really matter. If
we actually end up running a guest we should agree on an architecture,
and also boundle the require guest (which would have to be a really
minimal one) in the qemu-iotests repository. But for now I'd just avoid
requiring any guests.
> Maybe something like trying qemu-system-x86_64, then qemu-kvm, then
> qemu? We could use i386 guests on every host then. If it's accelerated
> with KVM, kqemu or not at all doesn't really matter.
Ok, fine with me. I'll respin the patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-08 11:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 18:03 [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH Christoph Hellwig
2009-07-08 8:34 ` Kevin Wolf
2009-07-08 10:59 ` Christoph Hellwig
2009-07-08 11:09 ` Kevin Wolf
2009-07-08 11:21 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).