qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Hi Natalia.. A query regarding QEMU
       [not found] <CA+A_OnXY5RU9iu_Gm4oTHGZmMwYKqWKgz+ZdS921wBQqeKa3BA@mail.gmail.com>
@ 2011-11-04  3:55 ` Natalia Portillo
  2011-11-07 11:28   ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Natalia Portillo @ 2011-11-04  3:55 UTC (permalink / raw)
  To: Ankit Verma; +Cc: Developers qemu-devel@nongnu.org

Hi Ankit,

El 03/11/2011, a las 20:37, Ankit Verma escribió:

> Hi Natalia,
> 
> I am trying to support usb connections on Android Emulator. Since
> Android Emulator is based on QEMU, i thought you could give some
> insight on how to enable usb connections for android emulator.
> 
> As per the following information in google's android website -
> http://developer.android.com/guide/developing/devices/emulator.html
> 
> Emulator Limitations
> 
> In this release, the limitations of the emulator include:
> 
>>>> No support for USB connections
> No support for Bluetooth
> 
> Can you give some insight.

First of all, while Android Emulator is based on QEMU, they have made their own modifications, that have not been sent to us, so it's not 100% QEMU.

What I can tell you is that Android phones/tablets are USB devices, and QEMU have an incomplete support for REAL USB devices with QEMU behaving as an USB host. But QEMU is not designed currently to work as a USB device to a real USB host.

If you want to code that support yourself, you'll need a virtual host controller implementation on the host operating system, and then implementing QEMU behavior as an Android device (be it USB Mass Storage Device or Android Debug device).

For the first part, there are some implementations, called USB-IP, that create a virtual host controller both on Windows and on Linux hosts, and both are incomplete as I write.
For the second part that has never been tried (afaik) and would be mostly dependent on what solution you chose for the first part (as there will never be a way for QEMU to talk to a real host controller as a device).

I hope this gives insight for you, and any other question I may be of help, feel free to ask.

BTW, I'm CCing this to the mailing list, as other people may find this interesting, want to contribute with their opinions, so on.

Regards,
Natalia Portillo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Hi Natalia.. A query regarding QEMU
  2011-11-04  3:55 ` [Qemu-devel] Hi Natalia.. A query regarding QEMU Natalia Portillo
@ 2011-11-07 11:28   ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2011-11-07 11:28 UTC (permalink / raw)
  To: Natalia Portillo
  Cc: Hans de Goede, Ankit Verma, Developers qemu-devel@nongnu.org

  Hi,

> What I can tell you is that Android phones/tablets are USB devices,
> and QEMU have an incomplete support for REAL USB devices with QEMU
> behaving as an USB host. But QEMU is not designed currently to work
> as a USB device to a real USB host.
> 
> If you want to code that support yourself, you'll need a virtual host
> controller implementation on the host operating system, and then
> implementing QEMU behavior as an Android device (be it USB Mass
> Storage Device or Android Debug device).

Another option would be to explore the usbredir support recently added
to qemu.  The focus of the current implementation is to support
forwarding usb devices over the network.  You have a little server
running which export a usb device, and qemu's usbredir backend connects
to the server and allows the guest to access the device.

Of course you can replace the server side with something emulating a usb
device, for example a emulated android device with usb-host support,
i.e. you have two qemu's running, one with android, one with a linux or
windows guest os, and you'll link the two using the usbredir protocol.

Cc'ing Hans who wrote the usbredir support.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-07 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CA+A_OnXY5RU9iu_Gm4oTHGZmMwYKqWKgz+ZdS921wBQqeKa3BA@mail.gmail.com>
2011-11-04  3:55 ` [Qemu-devel] Hi Natalia.. A query regarding QEMU Natalia Portillo
2011-11-07 11:28   ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).