<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7459</bug_id>
          
          <creation_ts>2015-03-16 11:01:54 +0000</creation_ts>
          <short_desc>Implement the use of host USB devices on Linux for qemu machines</short_desc>
          <delta_ts>2019-02-07 15:58:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>virtual machines</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          <dependson>4827</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49464</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-16 11:01:54 +0000</bug_when>
    <thetext>Add for qemu machines the possibility to use a USB device that is connected to the host machine.
This could be used for more rapid development of Linux drivers or in order to prototype quicker an not-yet-available hardware and develop in advance the software stack for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49465</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-16 11:02:43 +0000</bug_when>
    <thetext>Technical reference:
http://wiki.qemu.org/download/qemu-doc.html#usb_005fdevices</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56368</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-11-10 17:33:49 +0000</bug_when>
    <thetext>Implementation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58081</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2016-01-21 17:30:43 +0000</bug_when>
    <thetext>Manually using an USB device inside a qemu VM:
1. Insert the USB device into a free port in the host computer
2. Using lsusb, find the vendor ID and device ID for the device
3. Run: sudo chown your_user /dev/bus/usb/bus/device (replace with the real numbers, as provided by lsusb also)
4. Run: runqemu qemux86-64 core-image-sato kvm qemuparams=&quot;-usbdevice host:vendor:device&quot; (replace vendor and device with real numbers)
5. USB device should show up in qemu VM

Please be sure to provide the appropriate drivers in qemu VM so that the USB can be functional.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58082</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2016-01-21 17:36:48 +0000</bug_when>
    <thetext>Work in progress implementation:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=ciorga/YOCTO7459</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58838</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-10 17:16:36 +0000</bug_when>
    <thetext>Pushing to 2.2 due to change of resources</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66184</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-09-15 04:21:11 +0000</bug_when>
    <thetext>It should work, I will verify it later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67283</commentid>
    <comment_count>7</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-10-17 07:58:07 +0000</bug_when>
    <thetext>It doesn&apos;t work:

$ runqemu . qemuparams=&quot;-usbdevice host:8564:1000&quot;

qemu-system-x86_64: -usbdevice host:8564:1000: could not add USB device &apos;host:8564:1000&apos;

Need more work , and move it to 2.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82969</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-02-07 15:58:59 +0000</bug_when>
    <thetext>At this point we aren&apos;t planning to do this. It may be something qemu can support and can likely be made to work if people have specific development needs but it isn&apos;t something generically useful we would use out the box.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>