All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM
@ 2016-05-28  9:28 Michael liu
  2016-05-30  7:50 ` [Qemu-devel] [Bug 1586611] " Michael liu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Michael liu @ 2016-05-28  9:28 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

** Affects: qemu
     Importance: Undecided
         Status: New

** Summary changed:

- usb-hub can not be detached when detach usb VM
+ usb-hub can not be detached when detach usb  from VM

** Summary changed:

- usb-hub can not be detached when detach usb  from VM
+ usb-hub can not be detached when detach usb  device from VM

** Description changed:

- I give a host usb device to guest in the way of passthrough,use "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).
+ 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

-- 
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,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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1586611/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  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 ` Michael liu
  2016-05-30  8:14 ` Michael liu
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michael liu @ 2016-05-30  7:50 UTC (permalink / raw)
  To: qemu-devel

I found that when I attached an usb device to the VM, the VM would add an usb-hub automatically if there was no usb-hub.
After adding an usb-hub,the VM assigned a port to the actual usb device. When detaching the usb device,the qemu only detach the port,without detaching the usb-hub.So when doing action like migrating or suspending/resumming,the VM will fail.

-- 
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,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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1586611/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michael liu @ 2016-05-30  8:14 UTC (permalink / raw)
  To: qemu-devel

Try detach the usb-hub device by the virsh detach-device usb-hub.xml?

-- 
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,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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1586611/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michael liu @ 2016-05-30 11:43 UTC (permalink / raw)
  To: qemu-devel

Of course using virtual usb controller is normal,The situation of the
problems is to use the passthrough usb devices

-- 
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,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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1586611/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  2016-05-28  9:28 [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM Michael liu
                   ` (2 preceding siblings ...)
  2016-05-30 11:43 ` Michael liu
@ 2016-06-02  2:37 ` Michael liu
  2016-06-06  2:39 ` Michael liu
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michael liu @ 2016-06-02  2:37 UTC (permalink / raw)
  To: qemu-devel

** 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  2016-05-28  9:28 [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM Michael liu
                   ` (3 preceding siblings ...)
  2016-06-02  2:37 ` Michael liu
@ 2016-06-06  2:39 ` Michael liu
  2016-06-27 10:48 ` Forest Lee
  2018-08-30 10:11 ` Gerd Hoffmann
  6 siblings, 0 replies; 8+ messages in thread
From: Michael liu @ 2016-06-06  2:39 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
     Assignee: (unassigned) => Michael liu (ztehypervisor)

-- 
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  2016-05-28  9:28 [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM Michael liu
                   ` (4 preceding siblings ...)
  2016-06-06  2:39 ` Michael liu
@ 2016-06-27 10:48 ` Forest Lee
  2018-08-30 10:11 ` Gerd Hoffmann
  6 siblings, 0 replies; 8+ messages in thread
From: Forest Lee @ 2016-06-27 10:48 UTC (permalink / raw)
  To: qemu-devel

The usb-hub device should be deleted when the usb device was detached.
When do you fix this bug?

-- 
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1586611] Re: usb-hub can not be detached when detach usb device from VM
  2016-05-28  9:28 [Qemu-devel] [Bug 1586611] [NEW] usb-hub can not be detached when detach usb device from VM Michael liu
                   ` (5 preceding siblings ...)
  2016-06-27 10:48 ` Forest Lee
@ 2018-08-30 10:11 ` Gerd Hoffmann
  6 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2018-08-30 10:11 UTC (permalink / raw)
  To: qemu-devel

Use a newer libvirt version which manages usb addressing and assigns usb
devices to usb ports.  This is required to make sure the physical device
tree is the same after vmsave/vmload or live migration.

** Changed in: qemu
       Status: New => Invalid

-- 
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:
  Invalid

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-08-30 10:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2016-06-06  2:39 ` Michael liu
2016-06-27 10:48 ` Forest Lee
2018-08-30 10:11 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.