Skip to contentSkip to conversation

virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge

PATCH Applied Hans de Goede 6 participants 12 messages Apr 9, 2013 – Apr 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge

---
 hw/9pfs/virtio-9p-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
  */
 
 #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
 #include "hw/i386/pc.h"
 #include "qemu/sockets.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
 #include "virtio-9p-xattr.h"
 #include "virtio-9p-coth.h"
 
Signature · 1 line
1.8.2
#1 lore raw

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
 hw/9pfs/virtio-9p-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Ouch, /me installs libcap-ng-devel.

Thanks.

Paolo

Quoted 18 lines
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
  */
 
 #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
 #include "hw/i386/pc.h"
 #include "qemu/sockets.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
 #include "virtio-9p-xattr.h"
 #include "virtio-9p-coth.h"
 
#2 lore raw
Quoted 21 lines · Paolo Bonzini

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
  hw/9pfs/virtio-9p-device.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Ouch, /me installs libcap-ng-devel.

Thanks.

Paolo

Quoted 9 lines
hw/9pfs/virtio-9p-device.c +1 -0
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
   */
 
  #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"

[..]

Quoted 1 line
Quoted 1 line
  #include "virtio-9p.h"

Is that normal?

We have two virtio-9p.h:
./hw/9pfs/virtio-9p.h
./include/hw/virtio/virtio-9p.h

which can be confusing.

is it not better to re-rename virtio-9p.h => virtio-9p-device.h?

Quoted 4 lines
Quoted 3 lines

-#include "virtio-9p-device.h"

#3 lore raw

Il 09/04/2013 11:30, KONRAD Frédéric ha scritto:

Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
    #include "hw/virtio/virtio.h"

+#include "hw/virtio/virtio-9p.h"

[..]

Quoted 8 lines
Quoted 1 line
Quoted 1 line
  #include "virtio-9p.h"

Is that normal?

We have two virtio-9p.h:
./hw/9pfs/virtio-9p.h
./include/hw/virtio/virtio-9p.h

which can be confusing.

Yes, the first one is only included with a local path. Though I think this is what confused my scripts.

Paolo

#4 lore raw
Quoted 11 lines · Paolo Bonzini

Il 09/04/2013 11:30, KONRAD Frédéric ha scritto:

Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
     #include "hw/virtio/virtio.h"

+#include "hw/virtio/virtio-9p.h"

[..]

Quoted 1 line
Quoted 1 line
   #include "virtio-9p.h"

Is that normal?

We have two virtio-9p.h:
./hw/9pfs/virtio-9p.h
./include/hw/virtio/virtio-9p.h

Quoted 5 lines
Quoted 1 line

which can be confusing.

Yes, the first one is only included with a local path. Though I think this is what confused my scripts.

Paolo

Ok, so you'll keep the same name for both files?

Thanks,
Fred

#5 lore raw
In reply to Paolo Bonzini
Quoted 8 lines · Paolo Bonzini

Il 09/04/2013 11:30, KONRAD Frédéric ha scritto:

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
    #include "hw/virtio/virtio.h"

+#include "hw/virtio/virtio-9p.h"

[..]

Quoted 1 line
Quoted 1 line
  #include "virtio-9p.h"

Is that normal?

Quoted 8 lines
Quoted 5 lines

We have two virtio-9p.h:
./hw/9pfs/virtio-9p.h
./include/hw/virtio/virtio-9p.h

which can be confusing.

Yes, the first one is only included with a local path. Though I think this is what confused my scripts.

It'll confuse maintenance programmers, too. Rename one of them? For what it's worth, the second was named virtio-9p-device.h until you renamed & moved it.

#6 lore raw

Il 09/04/2013 13:30, Markus Armbruster ha scritto:

Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

We have two virtio-9p.h:
./hw/9pfs/virtio-9p.h
./include/hw/virtio/virtio-9p.h

which can be confusing.

Yes, the first one is only included with a local path. Though I think this is what confused my scripts.

It'll confuse maintenance programmers, too. Rename one of them? For what it's worth, the second was named virtio-9p-device.h until you renamed & moved it.

The second isn't named virtio-9p.h. It is named hw/virtio/virtio-9p.h.
There is no -Iinclude/hw/virtio path, so you need the full path to
include it.

If you look at Linux, you have similarly include/scsi/scsi.h (for #include <scsi/scsi.h>) and drivers/scsi/scsi.h (for #include "scsi.h").

Paolo

#7 lore raw
In reply to Paolo Bonzini
Quoted 8 lines · Paolo Bonzini

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
 hw/9pfs/virtio-9p-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion

Ouch, /me installs libcap-ng-devel.

On a fresh F18, I tried to find all the deps needed that can be reasonably installed. This is what I came up with:

# yum install xen-devel iasl libfdt-devel libcap-ng-devel \
  spice-server-devel gnutls-devel cyrus-sasl-devel libjpeg-turbo-devel \
  libpng-devel uuid-devel xfsprogs-devel ncurses-devel brlapi-devel \
  libcurl-devel bluez-libs-devel libiscsi-devel libcap-ng-devel \
  spice-protocol SDL-devel libcap-devel usbredir-devel libseccomp-devel \
  ceph-devel

Still missing GlusterFS, VDE, and iscsi. F18 doesn't seem to package these at appropriate versions.

Regards,

Anthony Liguori

Quoted 23 lines

Thanks.

Paolo

Quoted 18 lines
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
  */
 
 #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
 #include "hw/i386/pc.h"
 #include "qemu/sockets.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
 #include "virtio-9p-xattr.h"
 #include "virtio-9p-coth.h"
 
#8 lore raw
Quoted 19 lines · Anthony Liguori
Quoted 7 lines · Paolo Bonzini

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
  hw/9pfs/virtio-9p-device.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion

Ouch, /me installs libcap-ng-devel.

On a fresh F18, I tried to find all the deps needed that can be reasonably installed. This is what I came up with:

# yum install xen-devel iasl libfdt-devel libcap-ng-devel \
   spice-server-devel gnutls-devel cyrus-sasl-devel libjpeg-turbo-devel \
   libpng-devel uuid-devel xfsprogs-devel ncurses-devel brlapi-devel \
   libcurl-devel bluez-libs-devel libiscsi-devel libcap-ng-devel \
   spice-protocol SDL-devel libcap-devel usbredir-devel libseccomp-devel \
   ceph-devel
Quoted 6 lines

Still missing GlusterFS, VDE, and iscsi. F18 doesn't seem to package these at appropriate versions.

Regards,

Anthony Liguori

Isn't libattr-devel needed as well for virtio-9p?

I needed it to test my patch-set this morning.

Quoted 23 lines
Quoted 23 lines

Thanks.

Paolo

Quoted 18 lines
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
   */
 
  #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
  #include "hw/i386/pc.h"
  #include "qemu/sockets.h"
  #include "virtio-9p.h"
  #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
  #include "virtio-9p-xattr.h"
  #include "virtio-9p-coth.h"
 
#9 lore raw
Quoted 20 lines · KONRAD Frédéric
Quoted 19 lines · Anthony Liguori
Quoted 7 lines · Paolo Bonzini

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
  hw/9pfs/virtio-9p-device.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion

Ouch, /me installs libcap-ng-devel.

On a fresh F18, I tried to find all the deps needed that can be reasonably installed. This is what I came up with:

# yum install xen-devel iasl libfdt-devel libcap-ng-devel \
   spice-server-devel gnutls-devel cyrus-sasl-devel libjpeg-turbo-devel \
   libpng-devel uuid-devel xfsprogs-devel ncurses-devel brlapi-devel \
   libcurl-devel bluez-libs-devel libiscsi-devel libcap-ng-devel \
   spice-protocol SDL-devel libcap-devel usbredir-devel libseccomp-devel \
   ceph-devel
Quoted 7 lines
Quoted 6 lines

Still missing GlusterFS, VDE, and iscsi. F18 doesn't seem to package these at appropriate versions.

Regards,

Anthony Liguori

Isn't libattr-devel needed as well for virtio-9p?

I have CONFIG_VIRTFS=y without libattr-devel installed FWIW.

Regards,

Anthony Liguori

Quoted 25 lines

I needed it to test my patch-set this morning.

Quoted 23 lines
Quoted 23 lines

Thanks.

Paolo

Quoted 18 lines
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
   */
 
  #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
  #include "hw/i386/pc.h"
  #include "qemu/sockets.h"
  #include "virtio-9p.h"
  #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
  #include "virtio-9p-xattr.h"
  #include "virtio-9p-coth.h"
 
#10 lore raw
Quoted 27 lines · Anthony Liguori
Quoted 25 lines · KONRAD Frédéric
Quoted 24 lines · Anthony Liguori
Quoted 7 lines · Paolo Bonzini

Il 09/04/2013 10:22, Hans de Goede ha scritto:

Quoted 5 lines
---
   hw/9pfs/virtio-9p-device.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion

Ouch, /me installs libcap-ng-devel.

On a fresh F18, I tried to find all the deps needed that can be reasonably installed. This is what I came up with:

# yum install xen-devel iasl libfdt-devel libcap-ng-devel \
    spice-server-devel gnutls-devel cyrus-sasl-devel libjpeg-turbo-devel \
    libpng-devel uuid-devel xfsprogs-devel ncurses-devel brlapi-devel \
    libcurl-devel bluez-libs-devel libiscsi-devel libcap-ng-devel \
    spice-protocol SDL-devel libcap-devel usbredir-devel libseccomp-devel \
    ceph-devel

Still missing GlusterFS, VDE, and iscsi. F18 doesn't seem to package these at appropriate versions.

Regards,

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

Anthony Liguori

Isn't libattr-devel needed as well for virtio-9p?

I have CONFIG_VIRTFS=y without libattr-devel installed FWIW.

Regards,

Anthony Liguori

True, I just tested.

But when I launch the configure script without libcap-devel installed:

[konradf@localhost qemu]$ ./configure [...] --enable-virtfs

ERROR: VirtFS is supported only on Linux and requires libcap-devel and libattr-devel

That's why I installed it :).

Quoted 24 lines
Quoted 24 lines

I needed it to test my patch-set this morning.

Quoted 22 lines
Quoted 22 lines

Thanks.

Paolo

Quoted 18 lines
hw/9pfs/virtio-9p-device.c +1 -1
index 43f930e..b476b81 100644
@@ -12,11 +12,11 @@
    */
 
   #include "hw/virtio/virtio.h"
+#include "hw/virtio/virtio-9p.h"
   #include "hw/i386/pc.h"
   #include "qemu/sockets.h"
   #include "virtio-9p.h"
   #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-device.h"
   #include "virtio-9p-xattr.h"
   #include "virtio-9p-coth.h"