0544bace3c
- kvm-Disable-VXHS-support.patch [bz#1714937] - kvm-aarch64-Add-virt-rhel8.1.0-machine-type-for-ARM.patch [bz#1713735] - kvm-aarch64-Allow-ARM-VIRT-iommu-option-in-RHEL8.1-machi.patch [bz#1713735] - kvm-usb-call-reset-handler-before-updating-state.patch [bz#1713679] - kvm-usb-host-skip-reset-for-untouched-devices.patch [bz#1713679] - kvm-usb-host-avoid-libusb_set_configuration-calls.patch [bz#1713679] - kvm-aarch64-Compile-out-IOH3420.patch [bz#1627283] - kvm-vl-Fix-drive-blockdev-persistent-reservation-managem.patch [bz#1714891] - kvm-vl-Document-why-objects-are-delayed.patch [bz#1714891] - Resolves: bz#1627283 (Compile out IOH3420 on aarch64) - Resolves: bz#1713679 (Detached device when trying to upgrade USB device firmware when in doing USB Passthrough via QEMU) - Resolves: bz#1713735 (Allow ARM VIRT iommu option in RHEL8.1 machine) - Resolves: bz#1714891 (Guest with persistent reservation manager for a disk fails to start) - Resolves: bz#1714937 (Disable VXHS support)
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
From 507b4bb7a63544c72e8ef1713ada9ff7c2e0024f Mon Sep 17 00:00:00 2001
|
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Date: Tue, 4 Jun 2019 07:13:40 +0100
|
|
Subject: [PATCH 5/9] usb-host: skip reset for untouched devices
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
Message-id: <20190604071341.3432-3-kraxel@redhat.com>
|
|
Patchwork-id: 88479
|
|
O-Subject: [RHEL-AV-8.1.0 qemu-kvm PATCH 2/3] usb-host: skip reset for untouched devices
|
|
Bugzilla: 1713679
|
|
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
|
If the guest didn't talk to the device yet, skip the reset.
|
|
Without this usb-host devices get resetted a number of times
|
|
at boot time for no good reason.
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Message-id: 20190522094702.17619-3-kraxel@redhat.com
|
|
(cherry picked from commit 65f14ab98da1da920f98ee8734dc1588b01d6b2b)
|
|
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
---
|
|
hw/usb/host-libusb.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
|
|
index 67b7465..4e9a45a 100644
|
|
--- a/hw/usb/host-libusb.c
|
|
+++ b/hw/usb/host-libusb.c
|
|
@@ -1459,6 +1459,9 @@ static void usb_host_handle_reset(USBDevice *udev)
|
|
if (!s->allow_guest_reset) {
|
|
return;
|
|
}
|
|
+ if (udev->addr == 0) {
|
|
+ return;
|
|
+ }
|
|
|
|
trace_usb_host_reset(s->bus_num, s->addr);
|
|
|
|
--
|
|
1.8.3.1
|
|
|