All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel@nongnu.org
Cc: famz@redhat.com, mst@redhat.com, jasowang@redhat.com,
	cohuck@redhat.com, agraf@suse.de, borntraeger@de.ibm.com
Subject: Re: [Qemu-devel] [PATCH] build-sys: add --disable-vhost-user
Date: Tue, 18 Jul 2017 13:05:29 -0400 (EDT)	[thread overview]
Message-ID: <2009859132.54994765.1500397529152.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <150039615900.87.9924963392732528224@5d477a5b5989>



----- Original Message -----
> Hi,
> 
> This series failed build test on FreeBSD host. Please find the details below.
> 
...
>   GEN     trace/generated-helpers.c
>   CC      x86_64-softmmu/trace/control-target.o
>   CC      x86_64-softmmu/gdbstub-xml.o
>   CC      x86_64-softmmu/trace/generated-helpers.o
>   LINK    x86_64-softmmu/qemu-system-x86_64
> hw/scsi/vhost-scsi-common.o: In function `vhost_scsi_common_start':
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:41:
> undefined reference to `vhost_dev_enable_notifiers'
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:53:
> undefined reference to `vhost_dev_start'
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:64:
> undefined reference to `vhost_virtqueue_mask'
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:72:
> undefined reference to `vhost_dev_disable_notifiers'
> hw/scsi/vhost-scsi-common.o: In function `vhost_scsi_common_stop':
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:83:
> undefined reference to `vhost_dev_stop'
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:93:
> undefined reference to `vhost_dev_disable_notifiers'
> hw/scsi/vhost-scsi-common.o: In function `vhost_scsi_common_get_features':
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-scsi-common.c:101:
> undefined reference to `vhost_get_features'
> hw/scsi/vhost-user-scsi.o: In function `vhost_user_scsi_realize':
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-user-scsi.c:94:
> undefined reference to `vhost_dev_init'
> hw/scsi/vhost-user-scsi.o: In function `vhost_user_scsi_unrealize':
> /var/tmp/patchew-tester-tmp-rj56yzun/src/hw/scsi/vhost-user-scsi.c:117:
> undefined reference to `vhost_dev_cleanup'
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
> gmake[1]: *** [Makefile:197: qemu-system-x86_64] Error 1
> gmake: *** [Makefile:328: subdir-x86_64-softmmu] Error 2

That should help:

diff --git a/default-configs/pci.mak b/default-configs/pci.mak
index 708d7b19ad..5fe530e58d 100644
--- a/default-configs/pci.mak
+++ b/default-configs/pci.mak
@@ -43,4 +43,4 @@ CONFIG_VGA=y
 CONFIG_VGA_PCI=y
 CONFIG_IVSHMEM=$(CONFIG_EVENTFD)
 CONFIG_ROCKER=y
-CONFIG_VHOST_USER_SCSI=$(CONFIG_VHOST_USER)
+CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
diff --git a/default-configs/s390x-softmmu.mak b/default-configs/s390x-softmmu.mak
index bb870477f8..51191b77df 100644
--- a/default-configs/s390x-softmmu.mak
+++ b/default-configs/s390x-softmmu.mak
@@ -1,6 +1,6 @@
 CONFIG_PCI=y
 CONFIG_VIRTIO_PCI=y
-CONFIG_VHOST_USER_SCSI=$(CONFIG_VHOST_USER)
+CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
 CONFIG_VIRTIO=y
 CONFIG_SCLPCONSOLE=y
 CONFIG_TERMINAL3270=y
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index 8cc836e9f2..8b0d6b69cd 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -2135,7 +2135,7 @@ static const TypeInfo vhost_scsi_pci_info = {
 };
 #endif
 
-#ifdef CONFIG_VHOST_USER_SCSI
+#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
 /* vhost-user-scsi-pci */
 static Property vhost_user_scsi_pci_properties[] = {
     DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors,
@@ -2665,7 +2665,7 @@ static void virtio_pci_register_types(void)
 #ifdef CONFIG_VHOST_SCSI
     type_register_static(&vhost_scsi_pci_info);
 #endif
-#ifdef CONFIG_VHOST_USER_SCSI
+#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
     type_register_static(&vhost_user_scsi_pci_info);
 #endif
 #ifdef CONFIG_VHOST_VSOCK

  reply	other threads:[~2017-07-18 17:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 16:34 [Qemu-devel] [PATCH] build-sys: add --disable-vhost-user Marc-André Lureau
2017-07-18 16:42 ` no-reply
2017-07-18 17:05   ` Marc-André Lureau [this message]
2017-07-18 20:17 ` Michael S. Tsirkin
2017-07-26 17:52 ` Michael S. Tsirkin
2017-07-27 23:31   ` Marc-André Lureau
2017-07-28  3:09     ` Michael S. Tsirkin
2017-07-28  5:01   ` Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2009859132.54994765.1500397529152.JavaMail.zimbra@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=famz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.