Skip to contentSkip to conversation

qemu-ga: build it even if !system

PATCH Superseded Michael Tokarev 3 participants 5 messages Jul 31, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-ga: build it even if !system

Move qemu-ga build check out of if softmmu.. into if tools section. We want to build qemu-ga for _guest_ even if system build isn't done. It is controlled separately using --enable-guest-agent.

---
 configure |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
configure +3 -5
index f0761ea..0105fd2 100755
@@ -3430,6 +3430,9 @@ if test "$want_tools" = "yes" ; then
   tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
   if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
     tools="qemu-nbd\$(EXESUF) $tools"
+    if [ "$guest_agent" = "yes" ]; then
+      tools="qemu-ga\$(EXESUF) $tools"
+    fi
   fi
 fi
 if test "$softmmu" = yes ; then
@@ -3444,11 +3447,6 @@ if test "$softmmu" = yes ; then
       virtfs=no
     fi
   fi
-  if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
-    if [ "$guest_agent" = "yes" ]; then
-      tools="qemu-ga\$(EXESUF) $tools"
-    fi
-  fi
 fi
 
 # Mac OS X ships with a broken assembler
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 3 lines · Michael Tokarev

Move qemu-ga build check out of if softmmu.. into if tools section. We want to build qemu-ga for _guest_ even if system build isn't done. It is controlled separately using --enable-guest-agent.

Actually the more I think about it... Maybe it shouldn't depend on --enable-tools either, but should be an independent option. Because it isn't really a tool.

The initial issue is - hopefully - clear. Some obscure guest which however supports virtio - it needs a guest agent, even if qemu-system does not build on it. Example is s390 (not s390x).

/mjt

Quoted 32 lines
---
  configure |    8 +++-----
  1 file changed, 3 insertions(+), 5 deletions(-)
configure +3 -5
index f0761ea..0105fd2 100755
@@ -3430,6 +3430,9 @@ if test "$want_tools" = "yes" ; then
    tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
    if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
      tools="qemu-nbd\$(EXESUF) $tools"
+    if [ "$guest_agent" = "yes" ]; then
+      tools="qemu-ga\$(EXESUF) $tools"
+    fi
    fi
  fi
  if test "$softmmu" = yes ; then
@@ -3444,11 +3447,6 @@ if test "$softmmu" = yes ; then
        virtfs=no
      fi
    fi
-  if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
-    if [ "$guest_agent" = "yes" ]; then
-      tools="qemu-ga\$(EXESUF) $tools"
-    fi
-  fi
  fi
 
  # Mac OS X ships with a broken assembler
#2 lore raw
Quoted 8 lines · Michael Tokarev
Quoted 3 lines · Michael Tokarev

Move qemu-ga build check out of if softmmu.. into if tools section. We want to build qemu-ga for _guest_ even if system build isn't done. It is controlled separately using --enable-guest-agent.

Actually the more I think about it... Maybe it shouldn't depend on --enable-tools either, but should be an independent option. Because it isn't really a tool.

This seems to me to be unnecessarily breaking things down into very finely divided categories. I think putting it in --enable-tools is fine.

-- PMM

#3 lore raw

Am 31.07.2013 13:05, schrieb Peter Maydell:

Quoted 6 lines · Michael Tokarev
Quoted 5 lines
Quoted 3 lines · Michael Tokarev

Move qemu-ga build check out of if softmmu.. into if tools section. We want to build qemu-ga for _guest_ even if system build isn't done. It is controlled separately using --enable-guest-agent.

Quoted 7 lines
Quoted 3 lines

Actually the more I think about it... Maybe it shouldn't depend on --enable-tools either, but should be an independent option. Because it isn't really a tool.

This seems to me to be unnecessarily breaking things down into very finely divided categories. I think putting it in --enable-tools is fine.

I disagree. Think about building a Windows guest agent: You don't need qemu-img (tools) on a Windows guest, and mjt is right that it shouldn't be coupled to building any qemu-system-*.

However it looks as if the linux/bsd/solaris checks got lost in the patch?

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#4 lore raw
Quoted 5 lines · Andreas Färber

Am 31.07.2013 13:05, schrieb Peter Maydell:

Quoted 4 lines
Quoted 3 lines

Actually the more I think about it... Maybe it shouldn't depend on --enable-tools either, but should be an independent option. Because it isn't really a tool.

Quoted 7 lines
Quoted 3 lines

This seems to me to be unnecessarily breaking things down into very finely divided categories. I think putting it in --enable-tools is fine.

I disagree. Think about building a Windows guest agent: You don't need qemu-img (tools) on a Windows guest, and mjt is right that it shouldn't be coupled to building any qemu-system-*.

It's not a tool, but indeed that's unnecessary too fine-grained. I'm not sure which way is preferrable :)

Quoted 1 line

However it looks as if the linux/bsd/solaris checks got lost in the patch?

No, the new place is already within linux/bsd/solaris conditional.

/mjt