Description of problem:
Usb input device attached to the same hub with usb-storage can't work after local migration
Version-Release number of selected component (if applicable):
How reproducible:
100%
Steps to Reproduce:
1.Boot up guest with command:
/usr/libexec/qemu-kvm \
-m 8192 \
-smp 4 \
-monitor stdio \
-vnc :91\
-vga std\
-nodefaults \
-device virtio-blk-pci,drive=drive-virtio-blk0,id=virtio-blk0 \
-drive file=rhel74-64-virtio.qcow2,format=qcow2,if=none,id=drive-virtio-blk0,snapshot=on \
-device virtio-net-pci,netdev=net0,id=nic0,mac=52:54:00:c4:e7:84 \
-netdev tap,id=net0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhost=on \
-device qemu-xhci,id=controller1\
-device usb-hub,id=hub1,port=1 \
-device usb-mouse,id=usbmouse,port=1.1\
-device usb-kbd,id=usbkbd,port=1.2\
-device usb-tablet,id=usbtablet,port=1.3\
-device usb-storage,id=storage1,port=1.4,drive=drive1 \
-drive file=data1.qcow2,id=drive1,if=none \
2.Boot up destination guest with additional command:
-incoming tcp:0:7777
3.Try to migrate it on localhost.
(qemu) migrate -d tcp:localhost:7777
4.Try to use mouse and kerboard in destination guest via vnc after migration.
Actual results:
Cann't use the usb input device(usb-mouse ,usb-tablet,usb-kbd)
Expected results:
Can use the usb input device(usb-mouse ,usb-tablet,usb-kbd)
Additional info:
The same issue on x86 platform ,and only happened with nec-usb-xhci and qemu-xhci controller.
Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.9.0-5.el7
host:kernel-3.10.0-663.el7.ppc64le
guest:kernel-3.10.0-663.el7.ppc64