qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] sound issue
@ 2006-08-31  2:04 Rick Vernam
  2006-08-31 10:02 ` [Qemu-devel] " malc
  0 siblings, 1 reply; 3+ messages in thread
From: Rick Vernam @ 2006-08-31  2:04 UTC (permalink / raw)
  To: qemu-devel

I've spent quite a lot of time trying to figure out why this keeps happening:

$ export QEMU_AUDIO_DRV=alsa
$ qemu-system-x86_64 -kernel-kqemu -hda /home/rick/docs/.qemu/wxp1.qemu -m 
192 -net nic -net tap,script=/etc/qemu-ifup -localtime -snapshot -usbdevice 
tablet -soundhw es1370
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'

I get no sound.
If I knew what these things meant, I might be able to figure this out...
Posting here is my last ditch effort - believe me, I have tried to avoid 
posting support questions in a dev. list, but am hoping for a bit of insight 
here...

almost forgot, linux host (gentoo), 2.6.17 kernel.

thanks
-Rick

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Win2k mouse
@ 2004-04-14 20:36 Mike Nordell
  2004-04-15  8:52 ` Jean-Michel POURE
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Nordell @ 2004-04-14 20:36 UTC (permalink / raw)
  To: qemu-devel

Hetz Ben Hamo wrote:

> Mike Nordell has send a keyboard/mouse fix for win2k as a guest,
> but I only see keyboard fix in the CVS.

Actually, the fix wasn't specifically for win2k guest. It was a deadlock
that would most probably have occured in any guest OS having both mouse and
keyboard input.

The problem was that (PS/2) mouse input was given priority when QEMU came to
choose between mouse and keyboard interrupts to report to the CPU, but when
the guest was reading I/O port 0x60 the keyboard queue had priority. Imagine
the deadlock when both mouse and keyboard messages were pending. :-)

The easiest way to see this bug in action was by grabbing the mouse and then
alt-tab (or whatever the kbd shortcut for switching to another window is in
your environment) to another window. Voila. Instant guest input lock.


I've got a feeling, though not yet any strong evidence, that since QEMU PC
emulation is yet so incomplete (it's basically like a 386 PC, with a 686
CPU) NT switches to some safety-mode for a lot of stuff. This could
potentially involve a lot of switching between protected mode and v86 mode,
which would slow down the emulation as seen. It's btw not only mouse - try
starting the Task Manager in the guest and watch the CPU pegged while
running it. Close that one and start PerfMon. Add e.g. interrupts/s or DPC
time or... anything. The numbers are off the chart (probably NT can't even
get them, but it might also be they are so insanely high they can't be
trusted), but it's no longer pegging the CPU (you'll notice it's no longer
using all available host CPU).

I'm right now on my way to add some profiling code to QEMU to see what's
going on in this area. While NT as guest behaves like this, just booting it
is a test of patience why it might take some days before I get any real
numbers.

/Mike

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

end of thread, other threads:[~2006-08-31 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-31  2:04 [Qemu-devel] sound issue Rick Vernam
2006-08-31 10:02 ` [Qemu-devel] " malc
  -- strict thread matches above, loose matches on Subject: below --
2004-04-14 20:36 [Qemu-devel] Win2k mouse Mike Nordell
2004-04-15  8:52 ` Jean-Michel POURE
2004-04-15  9:37   ` Lionel Ulmer
2004-04-15 13:44     ` Mike Nordell
2004-04-15 18:31       ` Lionel Ulmer
2004-04-15 20:21         ` Lionel Ulmer
2004-04-16  3:54           ` Mike Nordell
2004-04-16 16:33             ` malc
2004-04-16 17:30               ` [Qemu-devel] sound issue Hetz Ben Hamo

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).