Patchwork [05/16] virtio-scsi: Build virtio-scsi.o against vhost.o

login
register
mail settings
Submitter Zhiyong Wu
Date April 19, 2012, 2:38 a.m.
Message ID <1334803149-27379-6-git-send-email-zwu.kernel@gmail.com>
Download mbox | patch
Permalink /patch/153626/
State New
Headers show

Comments

Zhiyong Wu - April 19, 2012, 2:38 a.m.
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

For the time being virtio-scsi.c will directly use vhost without a host
device abstraction like virtio-net does.  This patch builds virtio-scsi
with vhost on KVM targets.

Also make sure that virtio-pci.o can be built without virtio-scsi.o.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/configure b/configure
index 2d62d12..efd8685 100755
--- a/configure
+++ b/configure
@@ -3682,6 +3682,8 @@  case "$target_arch2" in
       if test "$vhost_net" = "yes" ; then
         echo "CONFIG_VHOST_NET=y" >> $config_target_mak
       fi
+      echo "CONFIG_VIRTIO_SCSI=y" >> $config_target_mak
+      echo "CONFIG_VHOST=y" >> $config_target_mak
     fi
 esac
 if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then