Bug 795299

Summary: Qemu-kvm should refuse to start in migration listening mode when there is usb-host device
Product: Red Hat Enterprise Linux 6 Reporter: Shaolong Hu <shu>
Component: qemu-kvmAssignee: Juan Quintela <quintela>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, bsarathy, chayang, juzhang, michen, mkenneth, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-28 02:49:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shaolong Hu 2012-02-20 07:41:23 UTC
Description of problem:
-------------------------
When there is "pci-assign" device and "-incoming" in cmd, qemu-kvm fails to start, it should be the same when there is "usb-host" device.


Version-Release number of selected component (if applicable):
--------------------------------------------------------------
qemu-kvm-0.12.1.2-2.231.el6.x86_64


How reproducible:
-----------------
100%

Steps to Reproduce:
-------------------
1.boot guest with "-device usb-host,hostbus=X,hostaddr=X,id=X -incoming tcp:0:5555" where the usb-host device does exist.

  
Actual results:
-----------------
Qemu-kvm starts successfully and begins to listen.


Expected results:
------------------
Qemu-kvm should refuse to start and prompt error.

Comment 2 Chao Yang 2012-02-21 02:33:59 UTC
FYI:
https://bugzilla.redhat.com/show_bug.cgi?id=723870
#1: we should fail migration if usb devices tagged without migration support
#15: fail migration with usb device passthru'd

Fail migration instead of refusing launch listening mode works as designed, I think.

Comment 4 Juan Quintela 2012-02-27 13:59:04 UTC
also notice that usb is different from pci passthrough.  usb understands hot-plug/unplug natively.  In pci, that is much, much more complicated.

For comment 3, I guess that we can close this bugzilla?

Comment 5 Shaolong Hu 2012-02-28 02:49:11 UTC
(In reply to comment #4)
> also notice that usb is different from pci passthrough.  usb understands
> hot-plug/unplug natively.  In pci, that is much, much more complicated.
> 
> For comment 3, I guess that we can close this bugzilla?

Since current solution works well, no need to be consistent with pci passthrough way, close this as WONTFIX.