qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] USB support
Date: Sun, 13 Nov 2005 22:47:10 +0100	[thread overview]
Message-ID: <4377B45E.9030604@bellard.org> (raw)
In-Reply-To: <4376901A.1030805@gmx.de>


> When I use usb_add, I get:
> USBDEVFS_DISCONNECT: Inappropriate ioctl for device
> 
> This is with snapshot from 2005-11-11, on Debian testing, kernel 2.6.13
> (with 1000Hz timer).
> The patch below fixes this (plainly taken from
> http://www.mail-archive.com/linux-usb-devel@lists.sourceforge.net/msg35550.html
> ; is ifno = 0 correct?)

Thank you. I was not able to test this ioctl on my PC, hence the problem...

> With this patch, qemu recognized all USB devices I had available - which
> is actually only one device, a joystick :)
> Win2k showed it in the control panel with all available buttons and axes
> and reacted to events correctly.
> 
> Though, a strange thing is that as long as the device is attached to the
> guest, Windows gets very slow. The Windows task manager shows that the
> guest CPU load is at 100%; but "top" on the guest shows that qemu uses
> only 20% host CPU. This starts as soon as usb_add is executed, and stops
> as soon as usb_del is executed.
> Does qemu use sleep in the usb code, or does maybe Windows sent the CPU
> a HLT ? I don't really understand that behaviour :)

As mentionned in the documentation, the USB host emulation is very slow 
in QEMU. The problem is that USB requests block the whole VM. I plan to 
implement non blocking USB I/Os soon.

Fabrice.

  reply	other threads:[~2005-11-13 21:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-05 14:45 [Qemu-devel] USB support Fabrice Bellard
2005-11-05 16:31 ` Volker Ruppert
2005-11-05 17:10   ` Fabrice Bellard
2005-11-05 17:24     ` Lonnie Mendez
2005-11-06 14:11       ` Fabrice Bellard
2005-11-13  1:00         ` [Qemu-devel] [patch] " Oliver Gerlich
2005-11-13 21:47           ` Fabrice Bellard [this message]
2005-11-05 23:39     ` [Qemu-devel] " Matthew Mastracci
2005-11-06  2:04 ` [Qemu-devel] " Mark Williamson
2005-11-06  2:10   ` Paul Brook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4377B45E.9030604@bellard.org \
    --to=fabrice@bellard.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).