qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael liu <ztehypervisor@zte.com.cn>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
Date: Thu, 02 Jun 2016 02:37:19 -0000	[thread overview]
Message-ID: <20160602023720.827.1697.launchpad@wampee.canonical.com> (raw)
In-Reply-To: 20160528092814.26607.20933.malonedeb@chaenomeles.canonical.com

** Description changed:

  I give a host usb device to guest in the way of using "virsh attach-device" cmd. In guest os,use "lsusb" cmd I can see two devices have been added,one is usb device and the other is usb-hub(0409:55aa NEC Corp. Hub).
  when I use "virsh detach-device" detach the usb device,in guest os the usb-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 being 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-device" cmd. In guest os,use "lsusb" cmd I can see two devices have been added,one is usb device and the other is usb-hub(0409:55aa NEC Corp. Hub).
  when I use "virsh detach-device" detach the usb device,in guest os the usb-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

  parent reply	other threads:[~2016-06-02  2:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-28  9:28 [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM Michael liu
2016-05-30  7:50 ` [Qemu-devel] [Bug 1586611] " Michael liu
2016-05-30  8:14 ` Michael liu
2016-05-30 11:43 ` Michael liu
2016-06-02  2:37 ` Michael liu [this message]
2016-06-06  2:39 ` Michael liu
2016-06-27 10:48 ` Forest Lee
2018-08-30 10:11 ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160602023720.827.1697.launchpad@wampee.canonical.com \
    --to=ztehypervisor@zte.com.cn \
    --cc=1586611@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).