Jason Brittain | 1 Nov 2004 04:31

Re: Audio

malc wrote:
> Hello,
> 
> At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
> (10_aqemu) audio patch.

First, thanks for working on this!

I patched my qemu with it.  The patch applied fine, built fine, and ran
fine.  But, both before and after this patch, I still get no audio.

Host:  Fedora Core 2 i386
Guest: WinXP Corp.

I'm using the -enable-audio command line switch to qemu.  Anything else
I'd need to do?  XP finds no audio device at all.  Audio works fine
in Fedora (natively).  And, I'm running no other applications that use
the audio device while I run qemu to try it out.

Happy Halloween, and thanks again.  ;)

--

-- 
Jason Brittain
malc | 1 Nov 2004 13:06

Re: Audio

On Sun, 31 Oct 2004, Jason Brittain wrote:

> malc wrote:
> > Hello,
> >
> > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
> > (10_aqemu) audio patch.
>
> First, thanks for working on this!
>
> I patched my qemu with it.  The patch applied fine, built fine, and ran
> fine.  But, both before and after this patch, I still get no audio.
>
> Host:  Fedora Core 2 i386
> Guest: WinXP Corp.
>
> I'm using the -enable-audio command line switch to qemu.  Anything else
> I'd need to do?  XP finds no audio device at all.  Audio works fine
> in Fedora (natively).  And, I'm running no other applications that use
> the audio device while I run qemu to try it out.

What sound card and audio system (oss, alsa) do you use? Other guests
produce audio? Have you tried alternate audio output drivers
(QEMU_AUDIO_DRV=wav or sdl)? And also, i do not have WinXP license, so
there's relatively little i can do about it. Anybody else is having
problems with XP?

>
> Happy Halloween, and thanks again.  ;)
>
(Continue reading)

Ronald | 1 Nov 2004 13:32
Picon

Re: Audio

Le Sun, 31 Oct 2004 18:18:08 +0300, malc a écrit :

> Hello,
Hi,

> 
> At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
> (10_aqemu) audio patch. It boosts following improvements:
> 
> a. Correct IRQ status handling (Win95 sounds should no longer loop) b.
> save|load vm support
> c. Fixed WAV output driver
> d. Kludge to support SB16 under FreeBSD (can someone verify that it helps)
> e. Internal cleanups

I guess it's not on your priority list but I still experience problems on
windows host: qemu freeze on shutdown, sound play correctly with linux
guest but not with windows guest.
Otherwise on linux host everything seems ok, with alsa or oss drivers in
linux guest or with windows 98 guest, host is 2.6.9 with alsa+oss
emulation.

The following is a patch to Makefile.target after having 10_aqemu.patch.gz
applied

--- Makefile.target.bak 2004-11-01 13:02:08.845861544 +0100
+++ Makefile.target     2004-11-01 13:17:59.852649080 +0100
 <at>  <at>  -268,7 +268,10  <at>  <at> 
 VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o

(Continue reading)

malc | 1 Nov 2004 13:27

Re: Audio

On Sun, 31 Oct 2004, Jason Brittain wrote:

> malc wrote:
> > Hello,
> >
> > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
> > (10_aqemu) audio patch.
>
> First, thanks for working on this!
>
> I patched my qemu with it.  The patch applied fine, built fine, and ran
> fine.  But, both before and after this patch, I still get no audio.
>
> Host:  Fedora Core 2 i386
> Guest: WinXP Corp.

Another thought. QEMU's SB16 is non PNP ISA device, so perhaps, you should
try to install device driver manually, make sure that settings are set
correctly IRQ=5 DMA8=1 DMA16=5, maybe then it'll work.

--

-- 
mailto:malc <at> pulsesoft.com
malc | 1 Nov 2004 13:43

Re: Re: Audio

On Mon, 1 Nov 2004, Ronald wrote:

> Le Sun, 31 Oct 2004 18:18:08 +0300, malc a ?crit :
>
> > Hello,
> Hi,
>
> >
> > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
> > (10_aqemu) audio patch. It boosts following improvements:
> >
> > a. Correct IRQ status handling (Win95 sounds should no longer loop) b.
> > save|load vm support
> > c. Fixed WAV output driver
> > d. Kludge to support SB16 under FreeBSD (can someone verify that it helps)
> > e. Internal cleanups
>
> I guess it's not on your priority list but I still experience problems on
> windows host: qemu freeze on shutdown, sound play correctly with linux
> guest but not with windows guest.
> Otherwise on linux host everything seems ok, with alsa or oss drivers in
> linux guest or with windows 98 guest, host is 2.6.9 with alsa+oss
> emulation.

This is not on my priority list for the simple reason that i don't have
any Windows host, so there's nothing i can do to fix it. Does sound play
correctly on Linux with QEMU_AUDIO_DRV set to sdl, shutdowns are ok?

>
> The following is a patch to Makefile.target after having 10_aqemu.patch.gz
(Continue reading)

Ronald | 1 Nov 2004 14:09
Picon

Re: Re: Audio

Le Mon, 01 Nov 2004 15:43:37 +0300, malc a écrit :

> On Mon, 1 Nov 2004, Ronald wrote:
> 
>> Le Sun, 31 Oct 2004 18:18:08 +0300, malc a ?crit :
>>
>> > Hello,
>> Hi,
>>
>>
>> > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
>> > latest (10_aqemu) audio patch. It boosts following improvements:
>> >
>> > a. Correct IRQ status handling (Win95 sounds should no longer loop) b.
>> > save|load vm support
>> > c. Fixed WAV output driver
>> > d. Kludge to support SB16 under FreeBSD (can someone verify that it
>> > helps) e. Internal cleanups
>>
>> I guess it's not on your priority list but I still experience problems
>> on windows host: qemu freeze on shutdown, sound play correctly with
>> linux guest but not with windows guest.
>> Otherwise on linux host everything seems ok, with alsa or oss drivers in
>> linux guest or with windows 98 guest, host is 2.6.9 with alsa+oss
>> emulation.
> 
> This is not on my priority list for the simple reason that i don't have
> any Windows host, so there's nothing i can do to fix it. Does sound play
> correctly on Linux with QEMU_AUDIO_DRV set to sdl, shutdowns are ok?
> 
(Continue reading)

Matthew Frederico | 1 Nov 2004 20:33
Picon
Gravatar

QEMU newbie : disk access slowness

So QEMU rocks as far as cpu emulation is concerned... however, I am
wondering if I am doing something wrong, or can do something different
about disk access..

My host machine is FC3t3, and my qemu version is CVS (6.1) as of 10-26-2004...

I've been able to install both WIN98 and WinXP just fine, but
accessing the hard drive is sluggish at best.  CD-ROM appears to be
close to native.

Anybody have any pointers or tips as fars speeding up my hard disk
access with QEMU?

Regards,

--

-- 
-- Matthew Frederico
http://www.ultrize.com
zitu | 2 Nov 2004 14:04
Picon
Favicon

Re: QEMU newbie : disk access slowness

Quoting Matthew Frederico <mfrederico <at> gmail.com>:
> Anybody have any pointers or tips as fars speeding up my hard disk
> access with QEMU?

On win XP host, recompiling with gcc-3.3.3 instead of gcc-3.2.3 gave
some improvements. But the top is a certain patch posted some weeks
ago. See below...

(Host is winXPpro, guest is bbc-2.1.iso cdrom)
(all my recompilations are with msys/mingw+gcc-3.3.3)

qemu-0.6.0 (binaries from qemu's website)           = ~17 MB/s
qemu-0.6.0 (recompiled with msys/mingw+gcc-3.3.3)   = ~17.5 MB/s
qemu-0.6.1 (cvs *with* suggested pci-ide DMA PATCH) = ~47 MB/s !!!! :))

Please look back at this mailing list archives to get the
"suggested pci-ide DMA PATCH".

Zitu
--
zitu | 2 Nov 2004 16:40
Picon
Favicon

Re: Re: Re: Audio

> Sound playing is ok, but shutdown of win98 guest locks qemu and X, I must
> switch to a tty and kill qemu, then relaunch it to get the mouse
> working back. With linux guest shutdown is ok.

First off, thanks for this patch. It allows windows hosts to also have sound
now from Qemu.

I believe the makefile should be changed, because ossaudio.c compilation
is not needed for windows hosts. But that's minor.

The shutdown pb related to sound card is observed with the following
guests: dos-6.22, win95osr, win98se.

Note that for dos, downloading a simple mod-player and a few test files,
letting it run, and then try to close qemu, one can hear that the audio
buffer is not fully clean when qemu tries to switch itself off. It then
usually hangs, and one has to kill the process by end. Brute force. :(

If you can reproduce this under freedos_guest on a linux_host, this
could help the debug of the audio driver.

Note that sb16 drivers from Creative install perfectly under dos :)

Zitu
--
marco ghidinelli | 2 Nov 2004 19:44
Picon
Favicon

problems with dual ethernet networking

i'm unable to get a running configuration with a dual ethernet card with
qemu and vdeq.

i try with this commands:

vde_switch -daemon -sock /tmp/vde1.ctl
chmod 777 /tmp/vde1.ctl
vde_switch -daemon -sock /tmp/vde2.ctl
chmod 777 /tmp/vde2.ctl

vdeq qemu -sock /tmp/vde1.ctl,/tmp/vde2.ctl -nics 2 -hda vivian.img

and i got this message:

qemu: invalid fd for network interface 0

running:

vdeq echo  -sock /tmp/vde1.ctl,/tmp/vde2.ctl  -nics 2 -hda vivian.img

i got:

-tun-fd 3,5 -nics 2 -hda images/vivian.img

and looking in vl.c seems that qemu doesn't like very much the option
-tun-fd 3,5

is this option implemented? where i am wrong?
let me know.

(Continue reading)


Gmane