Blame SOURCES/kvm-Disable-vhost-user-scsi-and-vhost-user-scsi-pci.patch

4a2fec
From b303e792c3084c0b5535ec58fbae84a5fd4b892b Mon Sep 17 00:00:00 2001
4a2fec
From: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
Date: Fri, 13 Oct 2017 11:56:48 +0200
4a2fec
Subject: [PATCH 17/69] Disable vhost-user-scsi and vhost-user-scsi-pci
4a2fec
4a2fec
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
Message-id: <20171013115649.20817-2-mrezanin@redhat.com>
4a2fec
Patchwork-id: 77263
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCHv2 1/2] Disable vhost-user-scsi and vhost-user-scsi-pci
4a2fec
Bugzilla: 1498496
4a2fec
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
4a2fec
4a2fec
From: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
4a2fec
We are not going to support these new devices. CONFIG_VHOST_USER_SCSI option
4a2fec
removes only vhost-user-scsi so we have to manually disable
4a2fec
vhost-user-scsi-pci.
4a2fec
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 default-configs/aarch64-softmmu.mak | 2 +-
4a2fec
 default-configs/pci.mak             | 2 +-
4a2fec
 default-configs/ppc64-softmmu.mak   | 2 +-
4a2fec
 default-configs/s390x-softmmu.mak   | 2 +-
4a2fec
 hw/virtio/virtio-pci.c              | 2 ++
4a2fec
 5 files changed, 6 insertions(+), 4 deletions(-)
4a2fec
4a2fec
diff --git a/default-configs/aarch64-softmmu.mak b/default-configs/aarch64-softmmu.mak
4a2fec
index 5d57303..a2d05f4 100644
4a2fec
--- a/default-configs/aarch64-softmmu.mak
4a2fec
+++ b/default-configs/aarch64-softmmu.mak
4a2fec
@@ -22,7 +22,7 @@ CONFIG_SMBIOS=y
4a2fec
 CONFIG_PL061=y
4a2fec
 CONFIG_GPIO_KEY=y
4a2fec
 CONFIG_ARM_V7M=y
4a2fec
-CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
+#CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
 CONFIG_PCIE_PORT=y
4a2fec
 CONFIG_XIO3130=y
4a2fec
 CONFIG_IOH3420=y
4a2fec
diff --git a/default-configs/pci.mak b/default-configs/pci.mak
4a2fec
index 9bd8452..8cf0b60 100644
4a2fec
--- a/default-configs/pci.mak
4a2fec
+++ b/default-configs/pci.mak
4a2fec
@@ -43,4 +43,4 @@ CONFIG_VGA=y
4a2fec
 CONFIG_VGA_PCI=y
4a2fec
 CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
4a2fec
 #CONFIG_ROCKER=y
4a2fec
-CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
+#CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak
4a2fec
index 31ef40c..46e356b 100644
4a2fec
--- a/default-configs/ppc64-softmmu.mak
4a2fec
+++ b/default-configs/ppc64-softmmu.mak
4a2fec
@@ -8,7 +8,7 @@ CONFIG_USB_XHCI=y
4a2fec
 CONFIG_USB_XHCI_NEC=y
4a2fec
 CONFIG_WDT_IB6300ESB=y
4a2fec
 CONFIG_PCI_TESTDEV=y
4a2fec
-CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
+#CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
 
4a2fec
 include sound.mak
4a2fec
 include usb.mak
4a2fec
diff --git a/default-configs/s390x-softmmu.mak b/default-configs/s390x-softmmu.mak
4a2fec
index 2846634..02f62de 100644
4a2fec
--- a/default-configs/s390x-softmmu.mak
4a2fec
+++ b/default-configs/s390x-softmmu.mak
4a2fec
@@ -1,6 +1,6 @@
4a2fec
 CONFIG_PCI=y
4a2fec
 #CONFIG_VIRTIO_PCI=y
4a2fec
-CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
+#CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
4a2fec
 CONFIG_VIRTIO=y
4a2fec
 CONFIG_SCLPCONSOLE=y
4a2fec
 # Disabled for Red Hat Enterprise Linux:
4a2fec
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
4a2fec
index eccf809..8208aa2 100644
4a2fec
--- a/hw/virtio/virtio-pci.c
4a2fec
+++ b/hw/virtio/virtio-pci.c
4a2fec
@@ -2665,9 +2665,11 @@ static void virtio_pci_register_types(void)
4a2fec
 #ifdef CONFIG_VHOST_SCSI
4a2fec
     type_register_static(&vhost_scsi_pci_info);
4a2fec
 #endif
4a2fec
+#if 0 /* Disabled for Red Hat Enterprise Linux */
4a2fec
 #if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
4a2fec
     type_register_static(&vhost_user_scsi_pci_info);
4a2fec
 #endif
4a2fec
+#endif
4a2fec
 #ifdef CONFIG_VHOST_VSOCK
4a2fec
     type_register_static(&vhost_vsock_pci_info);
4a2fec
 #endif
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec