RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 844073 - RFE: please add support for qemu -device usb-redir,debug=# option
Summary: RFE: please add support for qemu -device usb-redir,debug=# option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-28 15:39 UTC by Hans de Goede
Modified: 2012-07-30 18:09 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-30 18:09:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hans de Goede 2012-07-28 15:39:12 UTC
Please add support for qemu -device usb-redir,debug=# option, usb-redir devices have a debug= option which is quite useful to help debugging problems with usb-redirection, currently users reporting usb redirection problems need to start qemu manually to be able to gather debug logs.

To be clear about what is needed, currently libvirt generates the following qemu cmdline "snippets" for usb-redir devices:

 -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=3

This bug is about changing this to for example:

 -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=3,debug=3

The default value for the debug parameter should be 0.

Comment 1 Daniel Berrangé 2012-07-30 07:52:54 UTC
I'm not convinced this kind of thing should be exposed in the libvirt XML. It should already be possible to toggle this when troubleshooting without having to start QEMU manually, by using the QEMU ARGV passthrough option and the '-set' argument to override the device property

Comment 2 Hans de Goede 2012-07-30 10:10:35 UTC
(In reply to comment #1)
> I'm not convinced this kind of thing should be exposed in the libvirt XML.
> It should already be possible to toggle this when troubleshooting without
> having to start QEMU manually, by using the QEMU ARGV passthrough option and
> the '-set' argument to override the device property

If this is indeed already possible then I agree that adding it to the libvirt XML is not necessarily a good idea,
can you give an example of how the QEMU ARGV passthrough option and the '-set' argument can be used to already do this? And/or provide a pointer to some documentation in this?

Comment 3 Daniel Berrangé 2012-07-30 10:19:44 UTC
If you do 'virsh dumpxml $GUEST', and identify the <alias name=XXX>, associated with the usb-redir device, you can then use that in -set device.XXXX.debug=4. So assuming the id was 'usbredir0' this could be set in libvirt XML thus:

<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  ...
  <devices>
    ...
  </devices>
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.usbredir0.debug=4'/>
  </qemu:commandline>
</domain>

Comment 4 Hans de Goede 2012-07-30 10:46:46 UTC
Ok, that works to enable the debugging, note to self the actual device aliases are redir0, redir1, etc.

So with this method of setting the debug parameter being present I'm fine with closing this as notabug.

Comment 5 Dave Allan 2012-07-30 18:09:34 UTC
(In reply to comment #4)
> So with this method of setting the debug parameter being present I'm fine
> with closing this as notabug.

Ok, done.


Note You need to log in before you can comment on or make changes to this bug.