Bug 1146460

Summary: qemu should quit with friendly prompt when use usb3.0 stick + uhci controller
Product: Red Hat Enterprise Linux 7 Reporter: Jun Li <juli>
Component: qemu-kvm-rhevAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED NEXTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: chayang, hdegoede, hhuang, juzhang, knoel, kraxel, michen, qzhang, rbalakri, virt-bugs, virt-maint, xfu, yama
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1046612 Environment:
Last Closed: 2015-09-01 10:56:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1046612    
Bug Blocks: 1103193, 1146483, 1146486    

Comment 1 Jun Li 2014-09-25 09:51:22 UTC
Version of components:
qemu-kvm-rhev-2.1.0-4.el7.x86_64

CLI:
# /usr/libexec/qemu-kvm -M pc -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img,bootindex=1 -m 2G -smp 2 -monitor stdio -spice port=5931,disable-ticketing -qmp tcp::8888,server,nowait -netdev tap,id=tap0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=tap0,id=net0,mac=24:be:05:11:92:11 -boot menu=on -M pc-i440fx-rhel7.0.0 \
-usb -device usb-host,hostbus=1,hostaddr=5,id=usb-stick

Comment 5 Gerd Hoffmann 2015-08-31 11:19:57 UTC
please retest with 2.3.x

Comment 6 juzhang 2015-09-01 02:05:58 UTC
Hi Yahui,

Could you have a try?

Best Regards,
Junyi

Comment 7 Yanhui Ma 2015-09-01 06:23:30 UTC
retest the issue with qemu-kvm-rhev-2.3.0-21.el7.x86_64

steps:

1.plug a usb3.0 stick into a usb-2 port on host.
2.boot guest with this stick passthrough to guest using uhci controller.
/usr/libexec/qemu-kvm -M pc -drive file=/home/rhel7.2.qcow2,if=none,id=img -device virtio-blk-pci,drive=img,id=sys-img,bootindex=1 -m 2G -smp 2 -monitor stdio -spice port=5931,disable-ticketing -qmp tcp::8888,server,nowait -netdev tap,id=tap0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=tap0,id=net0,mac=24:be:05:11:92:11 -boot menu=on -M pc -usb -device usb-host,hostbus=2,hostaddr=3,id=usb-stick
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) info usb
usb       usbhost   
(qemu) info usb
  Device 0.1, Port 1, Speed 12 Mb/s, Product

results:
after step2, guest boots up successfully and the stick works well in guest.

Comment 8 Gerd Hoffmann 2015-09-01 10:56:13 UTC
> results:
> after step2, guest boots up successfully and the stick works well in guest.

So the 2.3 rebase picked up the fix for this, good.