From 0a3cb6d8cec2f349a1c51ccd3e5263198a9f6146 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 8 May 2017 10:39:09 +0100 Subject: [PATCH] kernel: Update to 4.4.67/4.9.27/4.10.15 Note, the bugfix for the memory leak on a missing disk on Hyper-V has been incorporated into 4.9 and 4.10 so has been removed from our patch queue. Signed-off-by: Rolf Neugebauer --- kernel/Makefile | 10 +- kernel/kernel_config-4.10.x | 2 +- kernel/kernel_config-4.4.x | 2 +- kernel/kernel_config-4.9.x | 2 +- ...01-hv_sock-introduce-Hyper-V-Sockets.patch | 4 +- ...-Use-all-supported-IC-versions-to-ne.patch | 4 +- ...rs-hv-Log-the-negotiated-IC-versions.patch | 4 +- ...vmbus-fix-missed-ring-events-on-boot.patch | 4 +- ...to-error_clean_msglist-in-vmbus_open.patch | 4 +- ...y-enqueue-dequeue-the-channel-on-vmb.patch | 4 +- ...karound-for-virtual-DVD-SCSI-version.patch | 94 ------------------- ...make-find_vqs-checkpatch.pl-friendly.patch | 2 +- ...vmci_transport_notify_ops-structures.patch | 2 +- ...the-area-influenced-by-prepare_to_wa.patch | 2 +- ...istener-child-lock-ordering-explicit.patch | 2 +- ...t-specific-vsock_transport-functions.patch | 2 +- ...OCK-defer-sock-removal-to-transports.patch | 2 +- ...OCK-Introduce-virtio_vsock_common.ko.patch | 2 +- ...-VSOCK-Introduce-virtio_transport.ko.patch | 2 +- .../0009-VSOCK-Introduce-vhost_vsock.ko.patch | 2 +- .../0010-VSOCK-Add-Makefile-and-Kconfig.patch | 2 +- .../patches-4.4.x/0011-VSOCK-Use-kvfree.patch | 2 +- ...vhost-virtio_vsock_pkt-use-after-fre.patch | 2 +- ...-virtio-vsock-fix-include-guard-typo.patch | 2 +- ...drop-space-available-check-for-TX-vq.patch | 2 +- ...-host-network-namespace-to-use-AF_VS.patch | 2 +- ...e-the-channel-type-for-Hyper-V-PCI-E.patch | 2 +- ...-vmbus-Use-uuid_le-type-consistently.patch | 2 +- ...-Use-uuid_le_cmp-for-comparing-GUIDs.patch | 2 +- ...-do-sanity-check-of-channel-state-in.patch | 2 +- ...-release-relid-on-error-in-vmbus_pro.patch | 2 +- ...-channge-vmbus_connection.channel_lo.patch | 2 +- ...e-code-duplication-between-vmbus_rec.patch | 2 +- ...-fix-the-building-warning-with-hyper.patch | 2 +- ...-Treat-Fibre-Channel-devices-as-perf.patch | 2 +- ...us-Add-vendor-and-device-atttributes.patch | 2 +- ...-add-a-helper-function-to-set-a-chan.patch | 2 +- ...-define-the-new-offer-type-for-Hyper.patch | 2 +- ...-vmbus_sendpacket_ctl-hvsock-avoid-u.patch | 2 +- ...-define-a-new-VMBus-message-type-for.patch | 2 +- ...-add-a-hvsock-flag-in-struct-hv_driv.patch | 2 +- ...s-add-a-per-channel-rescind-callback.patch | 2 +- ...-add-an-API-vmbus_hvsock_device_unre.patch | 2 +- ...-Give-control-over-how-the-ring-acce.patch | 2 +- ...s-avoid-wait_for_completion-on-crash.patch | 2 +- ...-avoid-unneeded-compiler-optimizatio.patch | 2 +- ...Kernel-Connection-Multiplexor-module.patch | 2 +- ...AF_KCM-entries-to-family-name-tables.patch | 2 +- .../0038-net-Add-Qualcomm-IPC-router.patch | 2 +- ...39-hv_sock-introduce-Hyper-V-Sockets.patch | 2 +- ...HYPERV-entries-to-family-name-tables.patch | 2 +- ...-fix-the-race-when-querying-updating.patch | 2 +- ...n-t-spam-the-logs-with-unknown-GUIDs.patch | 2 +- .../0043-fs-add-filp_clone_open-API.patch | 2 +- ...persistent-opened-binary-handler-for.patch | 2 +- ...01-hv_sock-introduce-Hyper-V-Sockets.patch | 4 +- ...n-t-spam-the-logs-with-unknown-GUIDs.patch | 4 +- ...-Fix-the-mapping-between-host-versio.patch | 4 +- ...-Drivers-hv-vss-Improve-log-messages.patch | 4 +- ...peration-timeouts-should-match-host-.patch | 4 +- ...-Use-all-supported-IC-versions-to-ne.patch | 4 +- ...rs-hv-Log-the-negotiated-IC-versions.patch | 4 +- ...vmbus-fix-missed-ring-events-on-boot.patch | 4 +- ...to-error_clean_msglist-in-vmbus_open.patch | 4 +- ...y-enqueue-dequeue-the-channel-on-vmb.patch | 4 +- ...karound-for-virtual-DVD-SCSI-version.patch | 94 ------------------- 66 files changed, 84 insertions(+), 272 deletions(-) delete mode 100644 kernel/patches-4.10.x/0007-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch delete mode 100644 kernel/patches-4.9.x/0011-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch diff --git a/kernel/Makefile b/kernel/Makefile index f6f4e14ce..03947542e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -62,8 +62,8 @@ endef # Build Targets # Debug targets only for latest stable and LTS stable # -$(eval $(call kernel,4.10.14,4.10.x)) -$(eval $(call kernel,4.10.14,4.10.x,_dbg)) -$(eval $(call kernel,4.9.26,4.9.x)) -$(eval $(call kernel,4.9.26,4.9.x,_dbg)) -$(eval $(call kernel,4.4.66,4.4.x)) +$(eval $(call kernel,4.10.15,4.10.x)) +$(eval $(call kernel,4.10.15,4.10.x,_dbg)) +$(eval $(call kernel,4.9.27,4.9.x)) +$(eval $(call kernel,4.9.27,4.9.x,_dbg)) +$(eval $(call kernel,4.4.67,4.4.x)) diff --git a/kernel/kernel_config-4.10.x b/kernel/kernel_config-4.10.x index 25fa93158..220ed22f5 100644 --- a/kernel/kernel_config-4.10.x +++ b/kernel/kernel_config-4.10.x @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 4.10.14 Kernel Configuration +# Linux/x86 4.10.15 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y diff --git a/kernel/kernel_config-4.4.x b/kernel/kernel_config-4.4.x index 0e76e23f6..748ddd1b9 100644 --- a/kernel/kernel_config-4.4.x +++ b/kernel/kernel_config-4.4.x @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 4.4.66 Kernel Configuration +# Linux/x86 4.4.67 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y diff --git a/kernel/kernel_config-4.9.x b/kernel/kernel_config-4.9.x index f2272f360..7f8020f0b 100644 --- a/kernel/kernel_config-4.9.x +++ b/kernel/kernel_config-4.9.x @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 4.9.26 Kernel Configuration +# Linux/x86 4.9.27 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y diff --git a/kernel/patches-4.10.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch b/kernel/patches-4.10.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch index d5116859c..565776016 100644 --- a/kernel/patches-4.10.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch +++ b/kernel/patches-4.10.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch @@ -1,7 +1,7 @@ -From dd08e20ca2c64c1d4d6ee282e949eb5e89f77512 Mon Sep 17 00:00:00 2001 +From 99c81eafb72f234b0f07cef4881a3adefda33e7a Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Thu, 21 Jul 2016 16:04:38 -0600 -Subject: [PATCH 1/7] hv_sock: introduce Hyper-V Sockets +Subject: [PATCH 1/6] hv_sock: introduce Hyper-V Sockets Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over diff --git a/kernel/patches-4.10.x/0002-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch b/kernel/patches-4.10.x/0002-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch index e60299653..08757cfe8 100644 --- a/kernel/patches-4.10.x/0002-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch +++ b/kernel/patches-4.10.x/0002-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch @@ -1,7 +1,7 @@ -From 6d21f35a580779c88a2f251395097b082574f4cc Mon Sep 17 00:00:00 2001 +From 1116f63f27d3f393a8b0931216e152a8367ca3b7 Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sat, 28 Jan 2017 12:37:17 -0700 -Subject: [PATCH 2/7] Drivers: hv: vmbus: Use all supported IC versions to +Subject: [PATCH 2/6] Drivers: hv: vmbus: Use all supported IC versions to negotiate Previously, we were assuming that each IC protocol version was tied to a diff --git a/kernel/patches-4.10.x/0003-Drivers-hv-Log-the-negotiated-IC-versions.patch b/kernel/patches-4.10.x/0003-Drivers-hv-Log-the-negotiated-IC-versions.patch index 9d03ee32d..1aa9719f6 100644 --- a/kernel/patches-4.10.x/0003-Drivers-hv-Log-the-negotiated-IC-versions.patch +++ b/kernel/patches-4.10.x/0003-Drivers-hv-Log-the-negotiated-IC-versions.patch @@ -1,7 +1,7 @@ -From fbdcc24ca6ecc490da8254110a85aa33325137b9 Mon Sep 17 00:00:00 2001 +From 8fb3580c9ac41e2d60fbc09e43e5d0fb1a3e819d Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sat, 28 Jan 2017 12:37:18 -0700 -Subject: [PATCH 3/7] Drivers: hv: Log the negotiated IC versions. +Subject: [PATCH 3/6] Drivers: hv: Log the negotiated IC versions. Log the negotiated IC versions. diff --git a/kernel/patches-4.10.x/0004-vmbus-fix-missed-ring-events-on-boot.patch b/kernel/patches-4.10.x/0004-vmbus-fix-missed-ring-events-on-boot.patch index 41a8ef495..3f90ed505 100644 --- a/kernel/patches-4.10.x/0004-vmbus-fix-missed-ring-events-on-boot.patch +++ b/kernel/patches-4.10.x/0004-vmbus-fix-missed-ring-events-on-boot.patch @@ -1,7 +1,7 @@ -From 64b212adc820690cb54855b79e30e23329aecc5a Mon Sep 17 00:00:00 2001 +From a37349b0ec71d431bb70981c3eae6390e06888b2 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Sun, 26 Mar 2017 16:42:20 +0800 -Subject: [PATCH 4/7] vmbus: fix missed ring events on boot +Subject: [PATCH 4/6] vmbus: fix missed ring events on boot During initialization, the channel initialization code schedules the tasklet to scan the VMBUS receive event page (i.e. simulates an diff --git a/kernel/patches-4.10.x/0005-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch b/kernel/patches-4.10.x/0005-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch index a0db1c0ef..81cdf037e 100644 --- a/kernel/patches-4.10.x/0005-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch +++ b/kernel/patches-4.10.x/0005-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch @@ -1,7 +1,7 @@ -From 0c089ad42dfc3a845ce6a21a1f78dd1704cbbaed Mon Sep 17 00:00:00 2001 +From 3ff012e70d2a70941a9d7a978a60a7b24115fed0 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 29 Mar 2017 18:37:10 +0800 -Subject: [PATCH 5/7] vmbus: remove "goto error_clean_msglist" in vmbus_open() +Subject: [PATCH 5/6] vmbus: remove "goto error_clean_msglist" in vmbus_open() This is just a cleanup patch to simplify the code a little. No semantic change. diff --git a/kernel/patches-4.10.x/0006-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch b/kernel/patches-4.10.x/0006-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch index 6a8162015..f2858ed6a 100644 --- a/kernel/patches-4.10.x/0006-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch +++ b/kernel/patches-4.10.x/0006-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch @@ -1,7 +1,7 @@ -From 67f5a959cea3dea2f5773cf7b690337dde421f9b Mon Sep 17 00:00:00 2001 +From b576288ba62dcc0a1fce29afb05bc41102bbc1c2 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Fri, 24 Mar 2017 20:53:18 +0800 -Subject: [PATCH 6/7] vmbus: dynamically enqueue/dequeue the channel on +Subject: [PATCH 6/6] vmbus: dynamically enqueue/dequeue the channel on vmbus_open/close Signed-off-by: Dexuan Cui diff --git a/kernel/patches-4.10.x/0007-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch b/kernel/patches-4.10.x/0007-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch deleted file mode 100644 index b1c89be76..000000000 --- a/kernel/patches-4.10.x/0007-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 6064d8207f1a62352f2476d09b8d6c6fba572359 Mon Sep 17 00:00:00 2001 -From: Stephen Hemminger -Date: Tue, 7 Mar 2017 09:15:53 -0800 -Subject: [PATCH 7/7] scsi: storvsc: Workaround for virtual DVD SCSI version - -Hyper-V host emulation of SCSI for virtual DVD device reports SCSI -version 0 (UNKNOWN) but is still capable of supporting REPORTLUN. - -Without this patch, a GEN2 Linux guest on Hyper-V will not boot 4.11 -successfully with virtual DVD ROM device. What happens is that the SCSI -scan process falls back to doing sequential probing by INQUIRY. But the -storvsc driver has a previous workaround that masks/blocks all errors -reports from INQUIRY (or MODE_SENSE) commands. This workaround causes -the scan to then populate a full set of bogus LUN's on the target and -then sends kernel spinning off into a death spiral doing block reads on -the non-existent LUNs. - -By setting the correct blacklist flags, the target with the DVD device -is scanned with REPORTLUN and that works correctly. - -Patch needs to go in current 4.11, it is safe but not necessary in older -kernels. - -Signed-off-by: Stephen Hemminger -Reviewed-by: K. Y. Srinivasan -Reviewed-by: Christoph Hellwig -Signed-off-by: Martin K. Petersen -(cherry picked from commit f1c635b439a5c01776fe3a25b1e2dc546ea82e6f) ---- - drivers/scsi/storvsc_drv.c | 27 +++++++++++++++++---------- - 1 file changed, 17 insertions(+), 10 deletions(-) - -diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c -index 7be04fc0d0e7..6f5d173ea9ff 100644 ---- a/drivers/scsi/storvsc_drv.c -+++ b/drivers/scsi/storvsc_drv.c -@@ -400,8 +400,6 @@ MODULE_PARM_DESC(storvsc_vcpus_per_sub_channel, "Ratio of VCPUs to subchannels") - */ - static int storvsc_timeout = 180; - --static int msft_blist_flags = BLIST_TRY_VPD_PAGES; -- - #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS) - static struct scsi_transport_template *fc_transport_template; - #endif -@@ -1283,6 +1281,22 @@ static int storvsc_do_io(struct hv_device *device, - return ret; - } - -+static int storvsc_device_alloc(struct scsi_device *sdevice) -+{ -+ /* -+ * Set blist flag to permit the reading of the VPD pages even when -+ * the target may claim SPC-2 compliance. MSFT targets currently -+ * claim SPC-2 compliance while they implement post SPC-2 features. -+ * With this flag we can correctly handle WRITE_SAME_16 issues. -+ * -+ * Hypervisor reports SCSI_UNKNOWN type for DVD ROM device but -+ * still supports REPORT LUN. -+ */ -+ sdevice->sdev_bflags = BLIST_REPORTLUN2 | BLIST_TRY_VPD_PAGES; -+ -+ return 0; -+} -+ - static int storvsc_device_configure(struct scsi_device *sdevice) - { - -@@ -1298,14 +1312,6 @@ static int storvsc_device_configure(struct scsi_device *sdevice) - sdevice->no_write_same = 1; - - /* -- * Add blist flags to permit the reading of the VPD pages even when -- * the target may claim SPC-2 compliance. MSFT targets currently -- * claim SPC-2 compliance while they implement post SPC-2 features. -- * With this patch we can correctly handle WRITE_SAME_16 issues. -- */ -- sdevice->sdev_bflags |= msft_blist_flags; -- -- /* - * If the host is WIN8 or WIN8 R2, claim conformance to SPC-3 - * if the device is a MSFT virtual device. If the host is - * WIN10 or newer, allow write_same. -@@ -1569,6 +1575,7 @@ static struct scsi_host_template scsi_driver = { - .eh_host_reset_handler = storvsc_host_reset_handler, - .proc_name = "storvsc_host", - .eh_timed_out = storvsc_eh_timed_out, -+ .slave_alloc = storvsc_device_alloc, - .slave_configure = storvsc_device_configure, - .cmd_per_lun = 255, - .this_id = -1, --- -2.11.0 - diff --git a/kernel/patches-4.4.x/0001-virtio-make-find_vqs-checkpatch.pl-friendly.patch b/kernel/patches-4.4.x/0001-virtio-make-find_vqs-checkpatch.pl-friendly.patch index c7323ae3a..819826359 100644 --- a/kernel/patches-4.4.x/0001-virtio-make-find_vqs-checkpatch.pl-friendly.patch +++ b/kernel/patches-4.4.x/0001-virtio-make-find_vqs-checkpatch.pl-friendly.patch @@ -1,4 +1,4 @@ -From c0450d109cf66e876b94dbea237ef151dc2e1daf Mon Sep 17 00:00:00 2001 +From 65587c034a86fafade057176f87c2a9c0fbe3892 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 17 Dec 2015 16:53:43 +0800 Subject: [PATCH 01/44] virtio: make find_vqs() checkpatch.pl-friendly diff --git a/kernel/patches-4.4.x/0002-VSOCK-constify-vmci_transport_notify_ops-structures.patch b/kernel/patches-4.4.x/0002-VSOCK-constify-vmci_transport_notify_ops-structures.patch index 181e6c2e4..00bb53dfc 100644 --- a/kernel/patches-4.4.x/0002-VSOCK-constify-vmci_transport_notify_ops-structures.patch +++ b/kernel/patches-4.4.x/0002-VSOCK-constify-vmci_transport_notify_ops-structures.patch @@ -1,4 +1,4 @@ -From 8e44803a51f4758fb556f1b0ef504facd23bd259 Mon Sep 17 00:00:00 2001 +From d268b3183f284abbcaaf9e1fa948455af19c45ca Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sat, 21 Nov 2015 18:39:17 +0100 Subject: [PATCH 02/44] VSOCK: constify vmci_transport_notify_ops structures diff --git a/kernel/patches-4.4.x/0003-AF_VSOCK-Shrink-the-area-influenced-by-prepare_to_wa.patch b/kernel/patches-4.4.x/0003-AF_VSOCK-Shrink-the-area-influenced-by-prepare_to_wa.patch index dd960f97b..84e1a4e26 100644 --- a/kernel/patches-4.4.x/0003-AF_VSOCK-Shrink-the-area-influenced-by-prepare_to_wa.patch +++ b/kernel/patches-4.4.x/0003-AF_VSOCK-Shrink-the-area-influenced-by-prepare_to_wa.patch @@ -1,4 +1,4 @@ -From 33f5155a5923bbe591393c5012d5b58d53257629 Mon Sep 17 00:00:00 2001 +From 02ad9ddf5e094f2a1c18c138aaf958a7a93ad062 Mon Sep 17 00:00:00 2001 From: Claudio Imbrenda Date: Tue, 22 Mar 2016 17:05:52 +0100 Subject: [PATCH 03/44] AF_VSOCK: Shrink the area influenced by prepare_to_wait diff --git a/kernel/patches-4.4.x/0004-vsock-make-listener-child-lock-ordering-explicit.patch b/kernel/patches-4.4.x/0004-vsock-make-listener-child-lock-ordering-explicit.patch index e0fc1394e..adb0881f3 100644 --- a/kernel/patches-4.4.x/0004-vsock-make-listener-child-lock-ordering-explicit.patch +++ b/kernel/patches-4.4.x/0004-vsock-make-listener-child-lock-ordering-explicit.patch @@ -1,4 +1,4 @@ -From d257ca48b7d08a0f0380cc3dd9202a8d0f8d569d Mon Sep 17 00:00:00 2001 +From aa2f792d7c0c0c9f80e03e4e72f57c148dae6226 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 23 Jun 2016 16:28:58 +0100 Subject: [PATCH 04/44] vsock: make listener child lock ordering explicit diff --git a/kernel/patches-4.4.x/0005-VSOCK-transport-specific-vsock_transport-functions.patch b/kernel/patches-4.4.x/0005-VSOCK-transport-specific-vsock_transport-functions.patch index 7018ca595..9d8a460db 100644 --- a/kernel/patches-4.4.x/0005-VSOCK-transport-specific-vsock_transport-functions.patch +++ b/kernel/patches-4.4.x/0005-VSOCK-transport-specific-vsock_transport-functions.patch @@ -1,4 +1,4 @@ -From ab128bd9c0f78eb513b57c704b68c2392c46e0d5 Mon Sep 17 00:00:00 2001 +From 8fe813cfb48c38acad56d94fb30391317534069d Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 28 Jul 2016 15:36:30 +0100 Subject: [PATCH 05/44] VSOCK: transport-specific vsock_transport functions diff --git a/kernel/patches-4.4.x/0006-VSOCK-defer-sock-removal-to-transports.patch b/kernel/patches-4.4.x/0006-VSOCK-defer-sock-removal-to-transports.patch index 0138af268..77c1b0973 100644 --- a/kernel/patches-4.4.x/0006-VSOCK-defer-sock-removal-to-transports.patch +++ b/kernel/patches-4.4.x/0006-VSOCK-defer-sock-removal-to-transports.patch @@ -1,4 +1,4 @@ -From d17744910502eb2ce946a116bb46f1ab6d094e05 Mon Sep 17 00:00:00 2001 +From 2626f2ffde8e268185f8065599bc41f9bc837eee Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 28 Jul 2016 15:36:31 +0100 Subject: [PATCH 06/44] VSOCK: defer sock removal to transports diff --git a/kernel/patches-4.4.x/0007-VSOCK-Introduce-virtio_vsock_common.ko.patch b/kernel/patches-4.4.x/0007-VSOCK-Introduce-virtio_vsock_common.ko.patch index 5d97de331..e8bb7ca96 100644 --- a/kernel/patches-4.4.x/0007-VSOCK-Introduce-virtio_vsock_common.ko.patch +++ b/kernel/patches-4.4.x/0007-VSOCK-Introduce-virtio_vsock_common.ko.patch @@ -1,4 +1,4 @@ -From f085865016733189a0e3c246e78f97ad03d90020 Mon Sep 17 00:00:00 2001 +From 697fa08adf698e52a4a77a6b0bc2b117110e978e Mon Sep 17 00:00:00 2001 From: Asias He Date: Thu, 28 Jul 2016 15:36:32 +0100 Subject: [PATCH 07/44] VSOCK: Introduce virtio_vsock_common.ko diff --git a/kernel/patches-4.4.x/0008-VSOCK-Introduce-virtio_transport.ko.patch b/kernel/patches-4.4.x/0008-VSOCK-Introduce-virtio_transport.ko.patch index 265a16484..cd587cff2 100644 --- a/kernel/patches-4.4.x/0008-VSOCK-Introduce-virtio_transport.ko.patch +++ b/kernel/patches-4.4.x/0008-VSOCK-Introduce-virtio_transport.ko.patch @@ -1,4 +1,4 @@ -From e68cc033460e45b09a0c62883bede33ef8e7d7a7 Mon Sep 17 00:00:00 2001 +From 32dd389975f365c888ce24b7e8a10254601067f9 Mon Sep 17 00:00:00 2001 From: Asias He Date: Thu, 28 Jul 2016 15:36:33 +0100 Subject: [PATCH 08/44] VSOCK: Introduce virtio_transport.ko diff --git a/kernel/patches-4.4.x/0009-VSOCK-Introduce-vhost_vsock.ko.patch b/kernel/patches-4.4.x/0009-VSOCK-Introduce-vhost_vsock.ko.patch index a718caa7b..30d2fe164 100644 --- a/kernel/patches-4.4.x/0009-VSOCK-Introduce-vhost_vsock.ko.patch +++ b/kernel/patches-4.4.x/0009-VSOCK-Introduce-vhost_vsock.ko.patch @@ -1,4 +1,4 @@ -From 6e741b0543a2ef3ab5aba9077e6c3df70c9c9f81 Mon Sep 17 00:00:00 2001 +From 0f8569daadde4e07587004389a3cb75ff3950e8d Mon Sep 17 00:00:00 2001 From: Asias He Date: Thu, 28 Jul 2016 15:36:34 +0100 Subject: [PATCH 09/44] VSOCK: Introduce vhost_vsock.ko diff --git a/kernel/patches-4.4.x/0010-VSOCK-Add-Makefile-and-Kconfig.patch b/kernel/patches-4.4.x/0010-VSOCK-Add-Makefile-and-Kconfig.patch index 82b2e3c51..94aaee0d2 100644 --- a/kernel/patches-4.4.x/0010-VSOCK-Add-Makefile-and-Kconfig.patch +++ b/kernel/patches-4.4.x/0010-VSOCK-Add-Makefile-and-Kconfig.patch @@ -1,4 +1,4 @@ -From a22b78482a982556b1f160f8bcb49f26f6d3eb12 Mon Sep 17 00:00:00 2001 +From 4fdb5af419141430ea38f101691de26bbb78cae8 Mon Sep 17 00:00:00 2001 From: Asias He Date: Thu, 28 Jul 2016 15:36:35 +0100 Subject: [PATCH 10/44] VSOCK: Add Makefile and Kconfig diff --git a/kernel/patches-4.4.x/0011-VSOCK-Use-kvfree.patch b/kernel/patches-4.4.x/0011-VSOCK-Use-kvfree.patch index 2df4a1815..03f94af00 100644 --- a/kernel/patches-4.4.x/0011-VSOCK-Use-kvfree.patch +++ b/kernel/patches-4.4.x/0011-VSOCK-Use-kvfree.patch @@ -1,4 +1,4 @@ -From ddae8d61bc30e6adacc046a5f71c94e17c3f5913 Mon Sep 17 00:00:00 2001 +From aaf3ec712bf9b70627f41b965e300cce9ef4f238 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Tue, 2 Aug 2016 13:50:42 +0000 Subject: [PATCH 11/44] VSOCK: Use kvfree() diff --git a/kernel/patches-4.4.x/0012-vhost-vsock-fix-vhost-virtio_vsock_pkt-use-after-fre.patch b/kernel/patches-4.4.x/0012-vhost-vsock-fix-vhost-virtio_vsock_pkt-use-after-fre.patch index 8173fbcbb..c1d5b8bf4 100644 --- a/kernel/patches-4.4.x/0012-vhost-vsock-fix-vhost-virtio_vsock_pkt-use-after-fre.patch +++ b/kernel/patches-4.4.x/0012-vhost-vsock-fix-vhost-virtio_vsock_pkt-use-after-fre.patch @@ -1,4 +1,4 @@ -From b6f92aa8c9ecd6b079f4fb4a60bcbf5d1d12cdb7 Mon Sep 17 00:00:00 2001 +From 1e694e84c3bab77804626ece5028ce58140f01c5 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 4 Aug 2016 14:52:53 +0100 Subject: [PATCH 12/44] vhost/vsock: fix vhost virtio_vsock_pkt use-after-free diff --git a/kernel/patches-4.4.x/0013-virtio-vsock-fix-include-guard-typo.patch b/kernel/patches-4.4.x/0013-virtio-vsock-fix-include-guard-typo.patch index eb14fe319..2301cd4f0 100644 --- a/kernel/patches-4.4.x/0013-virtio-vsock-fix-include-guard-typo.patch +++ b/kernel/patches-4.4.x/0013-virtio-vsock-fix-include-guard-typo.patch @@ -1,4 +1,4 @@ -From 9647e75a3b13fd4624fc5d27715e303d60ff195f Mon Sep 17 00:00:00 2001 +From 244e797c7aaf6a8d0b7af4e188a6c46fcc44c352 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Fri, 5 Aug 2016 13:52:09 +0100 Subject: [PATCH 13/44] virtio-vsock: fix include guard typo diff --git a/kernel/patches-4.4.x/0014-vhost-vsock-drop-space-available-check-for-TX-vq.patch b/kernel/patches-4.4.x/0014-vhost-vsock-drop-space-available-check-for-TX-vq.patch index 11378038d..604eceb75 100644 --- a/kernel/patches-4.4.x/0014-vhost-vsock-drop-space-available-check-for-TX-vq.patch +++ b/kernel/patches-4.4.x/0014-vhost-vsock-drop-space-available-check-for-TX-vq.patch @@ -1,4 +1,4 @@ -From d58af1f7b4746bc72b7c3fcc472afc1a52d8d703 Mon Sep 17 00:00:00 2001 +From d59652fd5f273d3abf754bcf7129d728c0693346 Mon Sep 17 00:00:00 2001 From: Gerard Garcia Date: Wed, 10 Aug 2016 17:24:34 +0200 Subject: [PATCH 14/44] vhost/vsock: drop space available check for TX vq diff --git a/kernel/patches-4.4.x/0015-VSOCK-Only-allow-host-network-namespace-to-use-AF_VS.patch b/kernel/patches-4.4.x/0015-VSOCK-Only-allow-host-network-namespace-to-use-AF_VS.patch index 627da905c..fef5f2d51 100644 --- a/kernel/patches-4.4.x/0015-VSOCK-Only-allow-host-network-namespace-to-use-AF_VS.patch +++ b/kernel/patches-4.4.x/0015-VSOCK-Only-allow-host-network-namespace-to-use-AF_VS.patch @@ -1,4 +1,4 @@ -From 9235762644913c58ab1bf0fb5c30c5d758609e85 Mon Sep 17 00:00:00 2001 +From 1aec74905f96a85b1e1465ad290629b9b7e4d644 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 4 Apr 2016 14:50:10 +0100 Subject: [PATCH 15/44] VSOCK: Only allow host network namespace to use diff --git a/kernel/patches-4.4.x/0016-drivers-hv-Define-the-channel-type-for-Hyper-V-PCI-E.patch b/kernel/patches-4.4.x/0016-drivers-hv-Define-the-channel-type-for-Hyper-V-PCI-E.patch index 831c6d154..e07bd8218 100644 --- a/kernel/patches-4.4.x/0016-drivers-hv-Define-the-channel-type-for-Hyper-V-PCI-E.patch +++ b/kernel/patches-4.4.x/0016-drivers-hv-Define-the-channel-type-for-Hyper-V-PCI-E.patch @@ -1,4 +1,4 @@ -From eda06ba5ccd4612fdd8cd1052c5c16c110578ad0 Mon Sep 17 00:00:00 2001 +From 89836a39c312bed5b63b21737336491c823013d5 Mon Sep 17 00:00:00 2001 From: Jake Oshins Date: Mon, 14 Dec 2015 16:01:41 -0800 Subject: [PATCH 16/44] drivers:hv: Define the channel type for Hyper-V PCI diff --git a/kernel/patches-4.4.x/0017-Drivers-hv-vmbus-Use-uuid_le-type-consistently.patch b/kernel/patches-4.4.x/0017-Drivers-hv-vmbus-Use-uuid_le-type-consistently.patch index ccd244236..e7f46a354 100644 --- a/kernel/patches-4.4.x/0017-Drivers-hv-vmbus-Use-uuid_le-type-consistently.patch +++ b/kernel/patches-4.4.x/0017-Drivers-hv-vmbus-Use-uuid_le-type-consistently.patch @@ -1,4 +1,4 @@ -From 1d9663f5a2796b309b27160f0af4e5c4c0f18c83 Mon Sep 17 00:00:00 2001 +From d2ceb0d3a8934fb8963d3e5aa046b29f048e1018 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Mon, 14 Dec 2015 16:01:43 -0800 Subject: [PATCH 17/44] Drivers: hv: vmbus: Use uuid_le type consistently diff --git a/kernel/patches-4.4.x/0018-Drivers-hv-vmbus-Use-uuid_le_cmp-for-comparing-GUIDs.patch b/kernel/patches-4.4.x/0018-Drivers-hv-vmbus-Use-uuid_le_cmp-for-comparing-GUIDs.patch index 6f36e29e0..56b4d32f5 100644 --- a/kernel/patches-4.4.x/0018-Drivers-hv-vmbus-Use-uuid_le_cmp-for-comparing-GUIDs.patch +++ b/kernel/patches-4.4.x/0018-Drivers-hv-vmbus-Use-uuid_le_cmp-for-comparing-GUIDs.patch @@ -1,4 +1,4 @@ -From 3a8878f2643a9c283b61fea32055a5518225ff45 Mon Sep 17 00:00:00 2001 +From a110178f322f0e3d68be5091407801be69e5c8c0 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Mon, 14 Dec 2015 16:01:44 -0800 Subject: [PATCH 18/44] Drivers: hv: vmbus: Use uuid_le_cmp() for comparing diff --git a/kernel/patches-4.4.x/0019-Drivers-hv-vmbus-do-sanity-check-of-channel-state-in.patch b/kernel/patches-4.4.x/0019-Drivers-hv-vmbus-do-sanity-check-of-channel-state-in.patch index 7f24fd742..c34321086 100644 --- a/kernel/patches-4.4.x/0019-Drivers-hv-vmbus-do-sanity-check-of-channel-state-in.patch +++ b/kernel/patches-4.4.x/0019-Drivers-hv-vmbus-do-sanity-check-of-channel-state-in.patch @@ -1,4 +1,4 @@ -From a8ae4adc714d2f48b1cf5d6aeccc8c82e5d70286 Mon Sep 17 00:00:00 2001 +From bf1f751e4c2ee890491aa700e88ca3080d53bfd1 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 14 Dec 2015 16:01:48 -0800 Subject: [PATCH 19/44] Drivers: hv: vmbus: do sanity check of channel state in diff --git a/kernel/patches-4.4.x/0020-Drivers-hv-vmbus-release-relid-on-error-in-vmbus_pro.patch b/kernel/patches-4.4.x/0020-Drivers-hv-vmbus-release-relid-on-error-in-vmbus_pro.patch index a28a1a2d8..717955eb3 100644 --- a/kernel/patches-4.4.x/0020-Drivers-hv-vmbus-release-relid-on-error-in-vmbus_pro.patch +++ b/kernel/patches-4.4.x/0020-Drivers-hv-vmbus-release-relid-on-error-in-vmbus_pro.patch @@ -1,4 +1,4 @@ -From ed9bb4b2f7531355f35f73caef1de8ced325582f Mon Sep 17 00:00:00 2001 +From 003d83ffaa9f55d7ea9fa246888aade350664647 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 14 Dec 2015 16:01:50 -0800 Subject: [PATCH 20/44] Drivers: hv: vmbus: release relid on error in diff --git a/kernel/patches-4.4.x/0021-Drivers-hv-vmbus-channge-vmbus_connection.channel_lo.patch b/kernel/patches-4.4.x/0021-Drivers-hv-vmbus-channge-vmbus_connection.channel_lo.patch index 467f11a15..ab180484e 100644 --- a/kernel/patches-4.4.x/0021-Drivers-hv-vmbus-channge-vmbus_connection.channel_lo.patch +++ b/kernel/patches-4.4.x/0021-Drivers-hv-vmbus-channge-vmbus_connection.channel_lo.patch @@ -1,4 +1,4 @@ -From 6078a1469613cd8ae73d701f0b75296b53645992 Mon Sep 17 00:00:00 2001 +From f13da3e6f10efddf356b9b72fe9f013dff239df4 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 14 Dec 2015 16:01:51 -0800 Subject: [PATCH 21/44] Drivers: hv: vmbus: channge diff --git a/kernel/patches-4.4.x/0022-Drivers-hv-remove-code-duplication-between-vmbus_rec.patch b/kernel/patches-4.4.x/0022-Drivers-hv-remove-code-duplication-between-vmbus_rec.patch index da887c72b..0a6d61c0a 100644 --- a/kernel/patches-4.4.x/0022-Drivers-hv-remove-code-duplication-between-vmbus_rec.patch +++ b/kernel/patches-4.4.x/0022-Drivers-hv-remove-code-duplication-between-vmbus_rec.patch @@ -1,4 +1,4 @@ -From 1a4fcd51c1303c01488a792792b5dca837de3b41 Mon Sep 17 00:00:00 2001 +From 7f47f3a2434b047c4afc61388eaa3f9f5d2ac2ff Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Mon, 14 Dec 2015 19:02:00 -0800 Subject: [PATCH 22/44] Drivers: hv: remove code duplication between diff --git a/kernel/patches-4.4.x/0023-Drivers-hv-vmbus-fix-the-building-warning-with-hyper.patch b/kernel/patches-4.4.x/0023-Drivers-hv-vmbus-fix-the-building-warning-with-hyper.patch index be78a8638..20a157024 100644 --- a/kernel/patches-4.4.x/0023-Drivers-hv-vmbus-fix-the-building-warning-with-hyper.patch +++ b/kernel/patches-4.4.x/0023-Drivers-hv-vmbus-fix-the-building-warning-with-hyper.patch @@ -1,4 +1,4 @@ -From 27f8ff7c68cae02679c069b2c7b23e14abb46827 Mon Sep 17 00:00:00 2001 +From ca9eadb83e076a9aa069bac19145ba4210ecb616 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 21 Dec 2015 12:21:22 -0800 Subject: [PATCH 23/44] Drivers: hv: vmbus: fix the building warning with diff --git a/kernel/patches-4.4.x/0024-Drivers-hv-vmbus-Treat-Fibre-Channel-devices-as-perf.patch b/kernel/patches-4.4.x/0024-Drivers-hv-vmbus-Treat-Fibre-Channel-devices-as-perf.patch index c61e5ad79..e308f7444 100644 --- a/kernel/patches-4.4.x/0024-Drivers-hv-vmbus-Treat-Fibre-Channel-devices-as-perf.patch +++ b/kernel/patches-4.4.x/0024-Drivers-hv-vmbus-Treat-Fibre-Channel-devices-as-perf.patch @@ -1,4 +1,4 @@ -From 668161423bf5234ba5bfeb14c8e7e66bbce69cc7 Mon Sep 17 00:00:00 2001 +From 5513f41f31e2275f07aabebc1333a2885c6e6db0 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Tue, 15 Dec 2015 16:27:27 -0800 Subject: [PATCH 24/44] Drivers: hv: vmbus: Treat Fibre Channel devices as diff --git a/kernel/patches-4.4.x/0025-Drivers-hv-vmbus-Add-vendor-and-device-atttributes.patch b/kernel/patches-4.4.x/0025-Drivers-hv-vmbus-Add-vendor-and-device-atttributes.patch index d4597b48c..04eaa40e4 100644 --- a/kernel/patches-4.4.x/0025-Drivers-hv-vmbus-Add-vendor-and-device-atttributes.patch +++ b/kernel/patches-4.4.x/0025-Drivers-hv-vmbus-Add-vendor-and-device-atttributes.patch @@ -1,4 +1,4 @@ -From 16e0a94e99ad3442a9379c7468df57f4ce8c670c Mon Sep 17 00:00:00 2001 +From 9a09b05b10ec989ecbe234112fc89cad85f3cda2 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Fri, 25 Dec 2015 20:00:30 -0800 Subject: [PATCH 25/44] Drivers: hv: vmbus: Add vendor and device atttributes diff --git a/kernel/patches-4.4.x/0026-Drivers-hv-vmbus-add-a-helper-function-to-set-a-chan.patch b/kernel/patches-4.4.x/0026-Drivers-hv-vmbus-add-a-helper-function-to-set-a-chan.patch index e9b76acf5..cfc868239 100644 --- a/kernel/patches-4.4.x/0026-Drivers-hv-vmbus-add-a-helper-function-to-set-a-chan.patch +++ b/kernel/patches-4.4.x/0026-Drivers-hv-vmbus-add-a-helper-function-to-set-a-chan.patch @@ -1,4 +1,4 @@ -From d3389a4bb44b67606dbd2a52443e6dee1f41903c Mon Sep 17 00:00:00 2001 +From 961d11b300d2c07ff3f9c1ebd1fee20c0f4adac9 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:37 -0800 Subject: [PATCH 26/44] Drivers: hv: vmbus: add a helper function to set a diff --git a/kernel/patches-4.4.x/0027-Drivers-hv-vmbus-define-the-new-offer-type-for-Hyper.patch b/kernel/patches-4.4.x/0027-Drivers-hv-vmbus-define-the-new-offer-type-for-Hyper.patch index 61a2ea854..338a294c1 100644 --- a/kernel/patches-4.4.x/0027-Drivers-hv-vmbus-define-the-new-offer-type-for-Hyper.patch +++ b/kernel/patches-4.4.x/0027-Drivers-hv-vmbus-define-the-new-offer-type-for-Hyper.patch @@ -1,4 +1,4 @@ -From a4833dbcff7f2afd1ade9037b694c96ef2c55e9a Mon Sep 17 00:00:00 2001 +From 1e3440a59fd12aa8f69693dacfd5ede1a0fb0f23 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:38 -0800 Subject: [PATCH 27/44] Drivers: hv: vmbus: define the new offer type for diff --git a/kernel/patches-4.4.x/0028-Drivers-hv-vmbus-vmbus_sendpacket_ctl-hvsock-avoid-u.patch b/kernel/patches-4.4.x/0028-Drivers-hv-vmbus-vmbus_sendpacket_ctl-hvsock-avoid-u.patch index e6975cb71..2cb752301 100644 --- a/kernel/patches-4.4.x/0028-Drivers-hv-vmbus-vmbus_sendpacket_ctl-hvsock-avoid-u.patch +++ b/kernel/patches-4.4.x/0028-Drivers-hv-vmbus-vmbus_sendpacket_ctl-hvsock-avoid-u.patch @@ -1,4 +1,4 @@ -From 40e732755e1420f4af2708b6507db8f468eed6e6 Mon Sep 17 00:00:00 2001 +From eaff1e301843cb99fa6d9bbb6585c1259619031d Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:39 -0800 Subject: [PATCH 28/44] Drivers: hv: vmbus: vmbus_sendpacket_ctl: hvsock: avoid diff --git a/kernel/patches-4.4.x/0029-Drivers-hv-vmbus-define-a-new-VMBus-message-type-for.patch b/kernel/patches-4.4.x/0029-Drivers-hv-vmbus-define-a-new-VMBus-message-type-for.patch index 879094940..3358149b6 100644 --- a/kernel/patches-4.4.x/0029-Drivers-hv-vmbus-define-a-new-VMBus-message-type-for.patch +++ b/kernel/patches-4.4.x/0029-Drivers-hv-vmbus-define-a-new-VMBus-message-type-for.patch @@ -1,4 +1,4 @@ -From e47b702fac77aca41a609d215fe2edcd6ba0ca8a Mon Sep 17 00:00:00 2001 +From 94389ac36fb77bfdc0d5b27f755304e28ffd0b37 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:40 -0800 Subject: [PATCH 29/44] Drivers: hv: vmbus: define a new VMBus message type for diff --git a/kernel/patches-4.4.x/0030-Drivers-hv-vmbus-add-a-hvsock-flag-in-struct-hv_driv.patch b/kernel/patches-4.4.x/0030-Drivers-hv-vmbus-add-a-hvsock-flag-in-struct-hv_driv.patch index 1e86615df..f5e6df66a 100644 --- a/kernel/patches-4.4.x/0030-Drivers-hv-vmbus-add-a-hvsock-flag-in-struct-hv_driv.patch +++ b/kernel/patches-4.4.x/0030-Drivers-hv-vmbus-add-a-hvsock-flag-in-struct-hv_driv.patch @@ -1,4 +1,4 @@ -From c46c619d2fed44189a7aee83b80b7377c4d629d5 Mon Sep 17 00:00:00 2001 +From d2c00ab3f958bc9f61ed8e96b2f25c321a39030e Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:41 -0800 Subject: [PATCH 30/44] Drivers: hv: vmbus: add a hvsock flag in struct diff --git a/kernel/patches-4.4.x/0031-Drivers-hv-vmbus-add-a-per-channel-rescind-callback.patch b/kernel/patches-4.4.x/0031-Drivers-hv-vmbus-add-a-per-channel-rescind-callback.patch index 751debf99..e58c184ed 100644 --- a/kernel/patches-4.4.x/0031-Drivers-hv-vmbus-add-a-per-channel-rescind-callback.patch +++ b/kernel/patches-4.4.x/0031-Drivers-hv-vmbus-add-a-per-channel-rescind-callback.patch @@ -1,4 +1,4 @@ -From 882ffbba712762a42f99b2b5c0f8faaeb304af5d Mon Sep 17 00:00:00 2001 +From 8da8cf008ac41f61c3bcd92c84d80a3139a5bd26 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:42 -0800 Subject: [PATCH 31/44] Drivers: hv: vmbus: add a per-channel rescind callback diff --git a/kernel/patches-4.4.x/0032-Drivers-hv-vmbus-add-an-API-vmbus_hvsock_device_unre.patch b/kernel/patches-4.4.x/0032-Drivers-hv-vmbus-add-an-API-vmbus_hvsock_device_unre.patch index 27f42cc94..c053e54ce 100644 --- a/kernel/patches-4.4.x/0032-Drivers-hv-vmbus-add-an-API-vmbus_hvsock_device_unre.patch +++ b/kernel/patches-4.4.x/0032-Drivers-hv-vmbus-add-an-API-vmbus_hvsock_device_unre.patch @@ -1,4 +1,4 @@ -From 2a62dd8f306cbfe472da7c4f101392d39d0c9016 Mon Sep 17 00:00:00 2001 +From fdba673e0450dc28446e51e8c6f4e28ceae10e65 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 27 Jan 2016 22:29:43 -0800 Subject: [PATCH 32/44] Drivers: hv: vmbus: add an API diff --git a/kernel/patches-4.4.x/0033-Drivers-hv-vmbus-Give-control-over-how-the-ring-acce.patch b/kernel/patches-4.4.x/0033-Drivers-hv-vmbus-Give-control-over-how-the-ring-acce.patch index 1ba09cf2f..85e575b0c 100644 --- a/kernel/patches-4.4.x/0033-Drivers-hv-vmbus-Give-control-over-how-the-ring-acce.patch +++ b/kernel/patches-4.4.x/0033-Drivers-hv-vmbus-Give-control-over-how-the-ring-acce.patch @@ -1,4 +1,4 @@ -From 7252800fbb2a5139ba09890fd6e0661bae81da94 Mon Sep 17 00:00:00 2001 +From 95ae99197054405cab15d50e2e29b1dbdff5350b Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Wed, 27 Jan 2016 22:29:45 -0800 Subject: [PATCH 33/44] Drivers: hv: vmbus: Give control over how the ring diff --git a/kernel/patches-4.4.x/0034-Drivers-hv-vmbus-avoid-wait_for_completion-on-crash.patch b/kernel/patches-4.4.x/0034-Drivers-hv-vmbus-avoid-wait_for_completion-on-crash.patch index fc7ef7676..578202480 100644 --- a/kernel/patches-4.4.x/0034-Drivers-hv-vmbus-avoid-wait_for_completion-on-crash.patch +++ b/kernel/patches-4.4.x/0034-Drivers-hv-vmbus-avoid-wait_for_completion-on-crash.patch @@ -1,4 +1,4 @@ -From e44228c16f9762cb41d72e43be893b495dd16b6a Mon Sep 17 00:00:00 2001 +From e6cad6631319b0eaccc1e1e21789aab94ad98b32 Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Fri, 26 Feb 2016 15:13:16 -0800 Subject: [PATCH 34/44] Drivers: hv: vmbus: avoid wait_for_completion() on diff --git a/kernel/patches-4.4.x/0035-Drivers-hv-vmbus-avoid-unneeded-compiler-optimizatio.patch b/kernel/patches-4.4.x/0035-Drivers-hv-vmbus-avoid-unneeded-compiler-optimizatio.patch index c4c7664b1..a55394d1d 100644 --- a/kernel/patches-4.4.x/0035-Drivers-hv-vmbus-avoid-unneeded-compiler-optimizatio.patch +++ b/kernel/patches-4.4.x/0035-Drivers-hv-vmbus-avoid-unneeded-compiler-optimizatio.patch @@ -1,4 +1,4 @@ -From c12bf6dd35af915ea91a2b77c30ac6af6c1d0bb2 Mon Sep 17 00:00:00 2001 +From 85d3030359a66c392d7d2ff7cd83068f665b3901 Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Fri, 26 Feb 2016 15:13:18 -0800 Subject: [PATCH 35/44] Drivers: hv: vmbus: avoid unneeded compiler diff --git a/kernel/patches-4.4.x/0036-kcm-Kernel-Connection-Multiplexor-module.patch b/kernel/patches-4.4.x/0036-kcm-Kernel-Connection-Multiplexor-module.patch index 623d60064..84c159082 100644 --- a/kernel/patches-4.4.x/0036-kcm-Kernel-Connection-Multiplexor-module.patch +++ b/kernel/patches-4.4.x/0036-kcm-Kernel-Connection-Multiplexor-module.patch @@ -1,4 +1,4 @@ -From 2f2c721a585f51ca062ef5c01e8c8c8fae9b08a4 Mon Sep 17 00:00:00 2001 +From 4127d28e67b9d809641e8c10bafd3c7a3ed9ee62 Mon Sep 17 00:00:00 2001 From: Tom Herbert Date: Mon, 7 Mar 2016 14:11:06 -0800 Subject: [PATCH 36/44] kcm: Kernel Connection Multiplexor module diff --git a/kernel/patches-4.4.x/0037-net-add-the-AF_KCM-entries-to-family-name-tables.patch b/kernel/patches-4.4.x/0037-net-add-the-AF_KCM-entries-to-family-name-tables.patch index 703ab7ec3..5a625d26f 100644 --- a/kernel/patches-4.4.x/0037-net-add-the-AF_KCM-entries-to-family-name-tables.patch +++ b/kernel/patches-4.4.x/0037-net-add-the-AF_KCM-entries-to-family-name-tables.patch @@ -1,4 +1,4 @@ -From df6f53e7e114aff82892cb7c7ba545f9cc53a05d Mon Sep 17 00:00:00 2001 +From 6a281898537c3d2f5f6d59140cc52395ec51bce4 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 21 Mar 2016 02:51:09 -0700 Subject: [PATCH 37/44] net: add the AF_KCM entries to family name tables diff --git a/kernel/patches-4.4.x/0038-net-Add-Qualcomm-IPC-router.patch b/kernel/patches-4.4.x/0038-net-Add-Qualcomm-IPC-router.patch index 71f485948..eaf767052 100644 --- a/kernel/patches-4.4.x/0038-net-Add-Qualcomm-IPC-router.patch +++ b/kernel/patches-4.4.x/0038-net-Add-Qualcomm-IPC-router.patch @@ -1,4 +1,4 @@ -From 3f2fbebff8f29b780fe49c360f5f4bfd9e245244 Mon Sep 17 00:00:00 2001 +From 961ebd43722d7549568d82cd0141d91d54f8957b Mon Sep 17 00:00:00 2001 From: Courtney Cavin Date: Wed, 27 Apr 2016 12:13:03 -0700 Subject: [PATCH 38/44] net: Add Qualcomm IPC router diff --git a/kernel/patches-4.4.x/0039-hv_sock-introduce-Hyper-V-Sockets.patch b/kernel/patches-4.4.x/0039-hv_sock-introduce-Hyper-V-Sockets.patch index fe47f7faa..58cf85ebd 100644 --- a/kernel/patches-4.4.x/0039-hv_sock-introduce-Hyper-V-Sockets.patch +++ b/kernel/patches-4.4.x/0039-hv_sock-introduce-Hyper-V-Sockets.patch @@ -1,4 +1,4 @@ -From 74b1beed224843379bf096722504c0d9f2be5290 Mon Sep 17 00:00:00 2001 +From ac43135a0b64b2ec8e86ee3c062e2c8132c5116a Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Sun, 15 May 2016 09:53:11 -0700 Subject: [PATCH 39/44] hv_sock: introduce Hyper-V Sockets diff --git a/kernel/patches-4.4.x/0040-net-add-the-AF_HYPERV-entries-to-family-name-tables.patch b/kernel/patches-4.4.x/0040-net-add-the-AF_HYPERV-entries-to-family-name-tables.patch index 4fb2a2ec5..9b1b15675 100644 --- a/kernel/patches-4.4.x/0040-net-add-the-AF_HYPERV-entries-to-family-name-tables.patch +++ b/kernel/patches-4.4.x/0040-net-add-the-AF_HYPERV-entries-to-family-name-tables.patch @@ -1,4 +1,4 @@ -From 58de1ac0776e5b11824cc1a6040e04a2f41d011f Mon Sep 17 00:00:00 2001 +From a30d3c8a1f151c831e630e4e3c91f17bfa8c4609 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Mon, 21 Mar 2016 02:53:08 -0700 Subject: [PATCH 40/44] net: add the AF_HYPERV entries to family name tables diff --git a/kernel/patches-4.4.x/0041-Drivers-hv-vmbus-fix-the-race-when-querying-updating.patch b/kernel/patches-4.4.x/0041-Drivers-hv-vmbus-fix-the-race-when-querying-updating.patch index e8282fb3d..9ac51c894 100644 --- a/kernel/patches-4.4.x/0041-Drivers-hv-vmbus-fix-the-race-when-querying-updating.patch +++ b/kernel/patches-4.4.x/0041-Drivers-hv-vmbus-fix-the-race-when-querying-updating.patch @@ -1,4 +1,4 @@ -From 228576533966d8649f77cb3a24db2a8cd885e69c Mon Sep 17 00:00:00 2001 +From 44fff03b868d378e85fccb16d7a1d21d35a989ea Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Sat, 21 May 2016 16:55:50 +0800 Subject: [PATCH 41/44] Drivers: hv: vmbus: fix the race when querying & diff --git a/kernel/patches-4.4.x/0042-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch b/kernel/patches-4.4.x/0042-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch index 6c586430b..7372b2dfc 100644 --- a/kernel/patches-4.4.x/0042-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch +++ b/kernel/patches-4.4.x/0042-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch @@ -1,4 +1,4 @@ -From ea2c749b3b5e3377c282c875198d9603e5fc6290 Mon Sep 17 00:00:00 2001 +From bb15c4ecb83c9c92572e3c630c65e10937c4e012 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 23 May 2016 18:55:45 +0100 Subject: [PATCH 42/44] vmbus: Don't spam the logs with unknown GUIDs diff --git a/kernel/patches-4.4.x/0043-fs-add-filp_clone_open-API.patch b/kernel/patches-4.4.x/0043-fs-add-filp_clone_open-API.patch index c11ec3467..94808ccce 100644 --- a/kernel/patches-4.4.x/0043-fs-add-filp_clone_open-API.patch +++ b/kernel/patches-4.4.x/0043-fs-add-filp_clone_open-API.patch @@ -1,4 +1,4 @@ -From 1975a6b966000e16517637c5c3e50f063d126133 Mon Sep 17 00:00:00 2001 +From 992793f6a076350cc0c01571ee9b64b5fcc7f701 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Wed, 17 Feb 2016 16:49:38 -0800 Subject: [PATCH 43/44] fs: add filp_clone_open API diff --git a/kernel/patches-4.4.x/0044-binfmt_misc-add-persistent-opened-binary-handler-for.patch b/kernel/patches-4.4.x/0044-binfmt_misc-add-persistent-opened-binary-handler-for.patch index 1ed9dded9..4b65955d7 100644 --- a/kernel/patches-4.4.x/0044-binfmt_misc-add-persistent-opened-binary-handler-for.patch +++ b/kernel/patches-4.4.x/0044-binfmt_misc-add-persistent-opened-binary-handler-for.patch @@ -1,4 +1,4 @@ -From 46e13af65a8647ca3d7b905e114b3b08cb1baa52 Mon Sep 17 00:00:00 2001 +From 29b6f3aeecdc5d3ac29df17221675d7fce14d2f5 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Wed, 17 Feb 2016 16:51:16 -0800 Subject: [PATCH 44/44] binfmt_misc: add persistent opened binary handler for diff --git a/kernel/patches-4.9.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch b/kernel/patches-4.9.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch index 15569196f..3f90d9708 100644 --- a/kernel/patches-4.9.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch +++ b/kernel/patches-4.9.x/0001-hv_sock-introduce-Hyper-V-Sockets.patch @@ -1,7 +1,7 @@ -From 03346ab53ed7b8630f0beb9f485c594893fea0b7 Mon Sep 17 00:00:00 2001 +From 231a186fd13d6b6eee30f3fb1e27d87029163a99 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Sat, 23 Jul 2016 01:35:51 +0000 -Subject: [PATCH 01/11] hv_sock: introduce Hyper-V Sockets +Subject: [PATCH 01/10] hv_sock: introduce Hyper-V Sockets Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over diff --git a/kernel/patches-4.9.x/0002-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch b/kernel/patches-4.9.x/0002-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch index d203db87d..d90942755 100644 --- a/kernel/patches-4.9.x/0002-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch +++ b/kernel/patches-4.9.x/0002-vmbus-Don-t-spam-the-logs-with-unknown-GUIDs.patch @@ -1,7 +1,7 @@ -From 8c9e43ab0c900ec022e5ead9da3ae0f6c3550d1a Mon Sep 17 00:00:00 2001 +From 5c65085ef26273bcacf17e00780ad6566152fdb0 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 23 May 2016 18:55:45 +0100 -Subject: [PATCH 02/11] vmbus: Don't spam the logs with unknown GUIDs +Subject: [PATCH 02/10] vmbus: Don't spam the logs with unknown GUIDs With Hyper-V sockets device types are introduced on the fly. The pr_info() then prints a message on every connection, which is way too verbose. Since diff --git a/kernel/patches-4.9.x/0003-Drivers-hv-utils-Fix-the-mapping-between-host-versio.patch b/kernel/patches-4.9.x/0003-Drivers-hv-utils-Fix-the-mapping-between-host-versio.patch index a6ab202d1..c7a0487ed 100644 --- a/kernel/patches-4.9.x/0003-Drivers-hv-utils-Fix-the-mapping-between-host-versio.patch +++ b/kernel/patches-4.9.x/0003-Drivers-hv-utils-Fix-the-mapping-between-host-versio.patch @@ -1,7 +1,7 @@ -From 9a9e0018b0792a5d90a55f9f9884ca00b055570a Mon Sep 17 00:00:00 2001 +From ec9002bb751427bc7ea5f39432391dc5e6d49568 Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sun, 6 Nov 2016 13:14:07 -0800 -Subject: [PATCH 03/11] Drivers: hv: utils: Fix the mapping between host +Subject: [PATCH 03/10] Drivers: hv: utils: Fix the mapping between host version and protocol to use We should intentionally declare the protocols to use for every known host diff --git a/kernel/patches-4.9.x/0004-Drivers-hv-vss-Improve-log-messages.patch b/kernel/patches-4.9.x/0004-Drivers-hv-vss-Improve-log-messages.patch index 447a90096..b1bd8a0a1 100644 --- a/kernel/patches-4.9.x/0004-Drivers-hv-vss-Improve-log-messages.patch +++ b/kernel/patches-4.9.x/0004-Drivers-hv-vss-Improve-log-messages.patch @@ -1,7 +1,7 @@ -From 5dee12c0277b5ab5f0565e3b398878558aef8f5f Mon Sep 17 00:00:00 2001 +From bb89735a5b10d27dfdbd9bf4aa62043fb900b7b9 Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sun, 6 Nov 2016 13:14:10 -0800 -Subject: [PATCH 04/11] Drivers: hv: vss: Improve log messages. +Subject: [PATCH 04/10] Drivers: hv: vss: Improve log messages. Adding log messages to help troubleshoot error cases and transaction handling. diff --git a/kernel/patches-4.9.x/0005-Drivers-hv-vss-Operation-timeouts-should-match-host-.patch b/kernel/patches-4.9.x/0005-Drivers-hv-vss-Operation-timeouts-should-match-host-.patch index 54ec1e4a9..fbb3aa88c 100644 --- a/kernel/patches-4.9.x/0005-Drivers-hv-vss-Operation-timeouts-should-match-host-.patch +++ b/kernel/patches-4.9.x/0005-Drivers-hv-vss-Operation-timeouts-should-match-host-.patch @@ -1,7 +1,7 @@ -From f13e08ae1e622240939ca89de246df4f2c7548e1 Mon Sep 17 00:00:00 2001 +From 9741d44b75ba27564d6e24c222226d4f8e8200ee Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sun, 6 Nov 2016 13:14:11 -0800 -Subject: [PATCH 05/11] Drivers: hv: vss: Operation timeouts should match host +Subject: [PATCH 05/10] Drivers: hv: vss: Operation timeouts should match host expectation Increase the timeout of backup operations. When system is under I/O load, diff --git a/kernel/patches-4.9.x/0006-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch b/kernel/patches-4.9.x/0006-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch index 0232f1be9..037e59b86 100644 --- a/kernel/patches-4.9.x/0006-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch +++ b/kernel/patches-4.9.x/0006-Drivers-hv-vmbus-Use-all-supported-IC-versions-to-ne.patch @@ -1,7 +1,7 @@ -From df244245d15f278d893b35a2f89f1eb16aa056c7 Mon Sep 17 00:00:00 2001 +From 9f985f0dc1c0edce1609e7078a9f510ac783b508 Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sat, 28 Jan 2017 12:37:17 -0700 -Subject: [PATCH 06/11] Drivers: hv: vmbus: Use all supported IC versions to +Subject: [PATCH 06/10] Drivers: hv: vmbus: Use all supported IC versions to negotiate Previously, we were assuming that each IC protocol version was tied to a diff --git a/kernel/patches-4.9.x/0007-Drivers-hv-Log-the-negotiated-IC-versions.patch b/kernel/patches-4.9.x/0007-Drivers-hv-Log-the-negotiated-IC-versions.patch index 2e34af227..0866109a0 100644 --- a/kernel/patches-4.9.x/0007-Drivers-hv-Log-the-negotiated-IC-versions.patch +++ b/kernel/patches-4.9.x/0007-Drivers-hv-Log-the-negotiated-IC-versions.patch @@ -1,7 +1,7 @@ -From 2aa2225bcfc4aecae9bc96eb2ed77d89bc0ea31a Mon Sep 17 00:00:00 2001 +From dc1b6203f4c72d86eedc7cab2f7f278f3815322e Mon Sep 17 00:00:00 2001 From: Alex Ng Date: Sat, 28 Jan 2017 12:37:18 -0700 -Subject: [PATCH 07/11] Drivers: hv: Log the negotiated IC versions. +Subject: [PATCH 07/10] Drivers: hv: Log the negotiated IC versions. Log the negotiated IC versions. diff --git a/kernel/patches-4.9.x/0008-vmbus-fix-missed-ring-events-on-boot.patch b/kernel/patches-4.9.x/0008-vmbus-fix-missed-ring-events-on-boot.patch index 878c37a39..be687dd0a 100644 --- a/kernel/patches-4.9.x/0008-vmbus-fix-missed-ring-events-on-boot.patch +++ b/kernel/patches-4.9.x/0008-vmbus-fix-missed-ring-events-on-boot.patch @@ -1,7 +1,7 @@ -From a0550b2fcf751edd0ad064a7f2b6a5073266379e Mon Sep 17 00:00:00 2001 +From d5709d16a11f582cde6538939b4c5d4bf79720a1 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Sun, 26 Mar 2017 16:42:20 +0800 -Subject: [PATCH 08/11] vmbus: fix missed ring events on boot +Subject: [PATCH 08/10] vmbus: fix missed ring events on boot During initialization, the channel initialization code schedules the tasklet to scan the VMBUS receive event page (i.e. simulates an diff --git a/kernel/patches-4.9.x/0009-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch b/kernel/patches-4.9.x/0009-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch index 8a4e56a5b..23d14426d 100644 --- a/kernel/patches-4.9.x/0009-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch +++ b/kernel/patches-4.9.x/0009-vmbus-remove-goto-error_clean_msglist-in-vmbus_open.patch @@ -1,7 +1,7 @@ -From 7775a44dbae9741449f73361124c5357a56b46c3 Mon Sep 17 00:00:00 2001 +From 0fe002950da2adad3ebb3cd75c027a8ece6ccfa3 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Wed, 29 Mar 2017 18:37:10 +0800 -Subject: [PATCH 09/11] vmbus: remove "goto error_clean_msglist" in +Subject: [PATCH 09/10] vmbus: remove "goto error_clean_msglist" in vmbus_open() This is just a cleanup patch to simplify the code a little. diff --git a/kernel/patches-4.9.x/0010-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch b/kernel/patches-4.9.x/0010-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch index 58ebc8bc3..43b9cb7fa 100644 --- a/kernel/patches-4.9.x/0010-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch +++ b/kernel/patches-4.9.x/0010-vmbus-dynamically-enqueue-dequeue-the-channel-on-vmb.patch @@ -1,7 +1,7 @@ -From 71b4ddd8f0e46a27e8c6d7f121b2b00e99275b13 Mon Sep 17 00:00:00 2001 +From cb704ca466de4fc0fbae977b2cd62dd9c49083a0 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Fri, 24 Mar 2017 20:53:18 +0800 -Subject: [PATCH 10/11] vmbus: dynamically enqueue/dequeue the channel on +Subject: [PATCH 10/10] vmbus: dynamically enqueue/dequeue the channel on vmbus_open/close Signed-off-by: Dexuan Cui diff --git a/kernel/patches-4.9.x/0011-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch b/kernel/patches-4.9.x/0011-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch deleted file mode 100644 index b3522de72..000000000 --- a/kernel/patches-4.9.x/0011-scsi-storvsc-Workaround-for-virtual-DVD-SCSI-version.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 4addded16fd89ad950103cca7af3dfea1f644cea Mon Sep 17 00:00:00 2001 -From: Stephen Hemminger -Date: Tue, 7 Mar 2017 09:15:53 -0800 -Subject: [PATCH 11/11] scsi: storvsc: Workaround for virtual DVD SCSI version - -Hyper-V host emulation of SCSI for virtual DVD device reports SCSI -version 0 (UNKNOWN) but is still capable of supporting REPORTLUN. - -Without this patch, a GEN2 Linux guest on Hyper-V will not boot 4.11 -successfully with virtual DVD ROM device. What happens is that the SCSI -scan process falls back to doing sequential probing by INQUIRY. But the -storvsc driver has a previous workaround that masks/blocks all errors -reports from INQUIRY (or MODE_SENSE) commands. This workaround causes -the scan to then populate a full set of bogus LUN's on the target and -then sends kernel spinning off into a death spiral doing block reads on -the non-existent LUNs. - -By setting the correct blacklist flags, the target with the DVD device -is scanned with REPORTLUN and that works correctly. - -Patch needs to go in current 4.11, it is safe but not necessary in older -kernels. - -Signed-off-by: Stephen Hemminger -Reviewed-by: K. Y. Srinivasan -Reviewed-by: Christoph Hellwig -Signed-off-by: Martin K. Petersen -(cherry picked from commit f1c635b439a5c01776fe3a25b1e2dc546ea82e6f) ---- - drivers/scsi/storvsc_drv.c | 27 +++++++++++++++++---------- - 1 file changed, 17 insertions(+), 10 deletions(-) - -diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c -index 3f218f5cf29b..c5ab1b0037fc 100644 ---- a/drivers/scsi/storvsc_drv.c -+++ b/drivers/scsi/storvsc_drv.c -@@ -400,8 +400,6 @@ MODULE_PARM_DESC(storvsc_vcpus_per_sub_channel, "Ratio of VCPUs to subchannels") - */ - static int storvsc_timeout = 180; - --static int msft_blist_flags = BLIST_TRY_VPD_PAGES; -- - #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS) - static struct scsi_transport_template *fc_transport_template; - #endif -@@ -1283,6 +1281,22 @@ static int storvsc_do_io(struct hv_device *device, - return ret; - } - -+static int storvsc_device_alloc(struct scsi_device *sdevice) -+{ -+ /* -+ * Set blist flag to permit the reading of the VPD pages even when -+ * the target may claim SPC-2 compliance. MSFT targets currently -+ * claim SPC-2 compliance while they implement post SPC-2 features. -+ * With this flag we can correctly handle WRITE_SAME_16 issues. -+ * -+ * Hypervisor reports SCSI_UNKNOWN type for DVD ROM device but -+ * still supports REPORT LUN. -+ */ -+ sdevice->sdev_bflags = BLIST_REPORTLUN2 | BLIST_TRY_VPD_PAGES; -+ -+ return 0; -+} -+ - static int storvsc_device_configure(struct scsi_device *sdevice) - { - -@@ -1298,14 +1312,6 @@ static int storvsc_device_configure(struct scsi_device *sdevice) - sdevice->no_write_same = 1; - - /* -- * Add blist flags to permit the reading of the VPD pages even when -- * the target may claim SPC-2 compliance. MSFT targets currently -- * claim SPC-2 compliance while they implement post SPC-2 features. -- * With this patch we can correctly handle WRITE_SAME_16 issues. -- */ -- sdevice->sdev_bflags |= msft_blist_flags; -- -- /* - * If the host is WIN8 or WIN8 R2, claim conformance to SPC-3 - * if the device is a MSFT virtual device. If the host is - * WIN10 or newer, allow write_same. -@@ -1569,6 +1575,7 @@ static struct scsi_host_template scsi_driver = { - .eh_host_reset_handler = storvsc_host_reset_handler, - .proc_name = "storvsc_host", - .eh_timed_out = storvsc_eh_timed_out, -+ .slave_alloc = storvsc_device_alloc, - .slave_configure = storvsc_device_configure, - .cmd_per_lun = 255, - .this_id = -1, --- -2.11.0 -