From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Idn-0004Jw-Ce for qemu-devel@nongnu.org; Wed, 01 Jun 2016 22:45:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8Idj-000612-9Y for qemu-devel@nongnu.org; Wed, 01 Jun 2016 22:45:47 -0400 Received: from indium.canonical.com ([91.189.90.7]:54733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Idj-00060h-3M for qemu-devel@nongnu.org; Wed, 01 Jun 2016 22:45:43 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1b8Idi-0000uU-DA for ; Thu, 02 Jun 2016 02:45:42 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5EA562E80C2 for ; Thu, 2 Jun 2016 02:45:42 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Jun 2016 02:37:19 -0000 From: Michael liu Reply-To: Bug 1586611 <1586611@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160528092814.26607.20933.malonedeb@chaenomeles.canonical.com> Message-Id: <20160602023720.827.1697.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Description changed: I give a host usb device to guest in the way of using "virsh attach-devic= e" cmd. In guest os,use "lsusb" cmd I can see two devices have been added,o= ne is usb device and the other is usb-hub=EF=BC=880409:55aa NEC Corp. Hub= =EF=BC=89. when I use "virsh detach-device" detach the usb device,in guest os the us= b-hub was still exists. It can create a bad impression when operating the VM,for example,suspend = and resume the VM,qemu would report that: = 2016-05-24T12:03:54.434369Z qemu-kvm: Unknown savevm section or instance '0000:00:01.2/2/usb-hub' 0 = 2016-05-24T12:03:54.434742Z qemu-kvm: load of migration failed: Invalid argument = - From qemu's code,it can be sure that the usb-hub is generated by qemu,and= the process of detaching usb-hub has already been executed,but failed.With= adding print information,error as follows: - libusbx: error [do_close] Device handle closed while transfer was still b= eing processed, but the device is still connected as far as we know - libusbx: warning [do_close] A cancellation for an in-flight transfer hasn= 't completed but closing the device handle + From qemu's code,it can be sure that the usb-hub is generated by + qemu,but could not be seen in xml file of libvirt. So when executing the + migration of VM or resuming VM after suspended,it report error like + "Unknown savevm section or instance '0000:00:01.2/2/usb-hub' 0" -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1586611 Title: usb-hub can not be detached when detach usb device from VM Status in QEMU: New Bug description: I give a host usb device to guest in the way of using "virsh attach-devic= e" cmd. In guest os,use "lsusb" cmd I can see two devices have been added,o= ne is usb device and the other is usb-hub=EF=BC=880409:55aa NEC Corp. Hub= =EF=BC=89. when I use "virsh detach-device" detach the usb device,in guest os the us= b-hub was still exists. It can create a bad impression when operating the VM,for example,suspend = and resume the VM,qemu would report that: 2016-05-24T12:03:54.434369Z qemu-kvm: Unknown savevm section or instance '0000:00:01.2/2/usb-hub' 0 2016-05-24T12:03:54.434742Z qemu-kvm: load of migration failed: Invalid argument From qemu's code,it can be sure that the usb-hub is generated by qemu,but could not be seen in xml file of libvirt. So when executing the migration of VM or resuming VM after suspended,it report error like "Unknown savevm section or instance '0000:00:01.2/2/usb-hub' 0" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1586611/+subscriptions