Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-14 Thread malc
On Thu, 14 May 2009, Sebastian Herbszt wrote: > malc wrote: > > On Wed, 13 May 2009, Sebastian Herbszt wrote: > > > > > Jan Kiszka wrote: > > > > Moreover, does sound work at all with your qemu? > > > > The image I tried [1] issues two beeps after loading (obviously via > > > > direct hw access)

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-14 Thread Sebastian Herbszt
malc wrote: On Wed, 13 May 2009, Sebastian Herbszt wrote: Jan Kiszka wrote: > Moreover, does sound work at all with your qemu? > The image I tried [1] issues two beeps after loading (obviously via > direct hw access) - a good way to check general support. Note that one > reason for broken host

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread malc
On Wed, 13 May 2009, Sebastian Herbszt wrote: > Jan Kiszka wrote: > > Sebastian Herbszt wrote: > > > With the modified vgabios (see below) it does beep on bochs on vista, > > > but not on qemu. > > > > Works fine for me! > > > > Did you check twice that your modified vgabios is actually loaded b

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread Samuel Thibault
Sebastian Herbszt, le Wed 13 May 2009 00:21:25 +0200, a écrit : > Tho those are coming thru my sound card and not the hosts pc speaker > (even with "-soundhw pcspk", but maybe that option means something > different). -soundhw pcspk means to emulate the PC speaker for the guest, it doesn't have to

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread Sebastian Herbszt
Jan Kiszka wrote: Sebastian Herbszt wrote: With the modified vgabios (see below) it does beep on bochs on vista, but not on qemu. Works fine for me! Did you check twice that your modified vgabios is actually loaded by qemu (e.g. via strace)? Yes, it uses the right rom. Moreover, does soun

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread Jan Kiszka
Sebastian Herbszt wrote: > Jan Kiszka wrote: >>> I have implemented the beep for vgabios-6b and it works on bochs but >>> fails on qemu. >>> With "-soundhw pcspk" i should hear it thru the hosts pc speaker, right? >> >> Yep, that's how it should work. Mind to share your code and tell us >> which te

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread Sebastian Herbszt
Jan Kiszka wrote: I have implemented the beep for vgabios-6b and it works on bochs but fails on qemu. With "-soundhw pcspk" i should hear it thru the hosts pc speaker, right? Yep, that's how it should work. Mind to share your code and tell us which test case you used? FreeDOS floppy with "deb

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-12 Thread Jan Kiszka
Sebastian Herbszt wrote: > Jan Kiszka wrote: >> Sebastian Herbszt wrote: >>> Anyway, using "timer ticks since midnight" should be possible (INT 08h >>> handler is set up >>> before vga bios is called). > > I have implemented the beep for vgabios-6b and it works on bochs but > fails on qemu. > With

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-09 Thread Sebastian Herbszt
Jan Kiszka wrote: Sebastian Herbszt wrote: Jan Kiszka wrote: Sebastian Herbszt wrote: Simon Bienlein wrote: Is a support for BIOS worked on right now? The vgabios (vgabios.c) has a "FIXME should beep". Volker, do you plan to fix this? Which frequency should be used for the beep? Which dela

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-07 Thread Jan Kiszka
Sebastian Herbszt wrote: > Jan Kiszka wrote: >> Sebastian Herbszt wrote: >>> Simon Bienlein wrote: Is a support for BIOS worked on right now? >>> >>> The vgabios (vgabios.c) has a "FIXME should beep". Volker, do you plan >>> to fix this? >>> >>> Which frequency should be used for the beep? Whi

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-06 Thread Sebastian Herbszt
Jan Kiszka wrote: Sebastian Herbszt wrote: Simon Bienlein wrote: Is a support for BIOS worked on right now? The vgabios (vgabios.c) has a "FIXME should beep". Volker, do you plan to fix this? Which frequency should be used for the beep? Which delay? I would try 1 KHz and some hundred milli

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-06 Thread Jan Kiszka
Sebastian Herbszt wrote: > Simon Bienlein wrote: >> Is a support for BIOS worked on right now? > > The vgabios (vgabios.c) has a "FIXME should beep". Volker, do you plan > to fix this? > > Which frequency should be used for the beep? Which delay? I would try 1 KHz and some hundred milliseconds.

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-05 Thread Sebastian Herbszt
Simon Bienlein wrote: Is a support for BIOS worked on right now? The vgabios (vgabios.c) has a "FIXME should beep". Volker, do you plan to fix this? Which frequency should be used for the beep? Which delay? Getting a delay using "inb(0x61) & 0x10" is still a no go on qemu, right? - Sebastian

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-05 Thread Simon Bienlein
Hello Jan, Am 04.05.2009 23:00, schrieb Jan Kiszka: Samuel Thibault wrote: Jan Kiszka, le Mon 04 May 2009 22:29:39 +0200, a écrit : When I boot the VM from the Lenny CD, there is no audible signal tone. Hmm, I successfully tested with '-soundbw pcspk' + my patches or -no-kvm-pit. There is

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-04 Thread Samuel Thibault
Jan Kiszka, le Mon 04 May 2009 22:29:39 +0200, a écrit : > > When I boot the VM from the Lenny CD, there is no audible signal tone. > > Hmm, I successfully tested with '-soundbw pcspk' + my patches or > -no-kvm-pit. There is probably a different, unrelated issue with your setup. Remember that the

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-04 Thread Jan Kiszka
Samuel Thibault wrote: > Jan Kiszka, le Mon 04 May 2009 22:29:39 +0200, a écrit : >>> When I boot the VM from the Lenny CD, there is no audible signal tone. >> Hmm, I successfully tested with '-soundbw pcspk' + my patches or >> -no-kvm-pit. There is probably a different, unrelated issue with your s

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-04 Thread Jan Kiszka
Simon Bienlein wrote: > Hello Jan, > > thank you very much for processing my request. > I [1]patched the KVM sources from Lenny and created a new Debian packet. Did you patch both kernel and user space? Note that my kernel patch was against the kernel git repository, not against the external modu

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-05-04 Thread Simon Bienlein
Hello Jan, thank you very much for processing my request. I [1]patched the KVM sources from Lenny and created a new Debian packet. When I boot the VM from the Lenny CD, there is no audible signal tone. It does not make a difference whether I start the KVM with or without the option -no-kvm-pit.

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-04-23 Thread Jan Kiszka
Avi Kivity wrote: > Jan Kiszka wrote: >> Avi Kivity wrote: >> >>> Jan Kiszka wrote: >>> Huh, it is! Then the problem is a KVM-only thing: The kernel part hooks onto those resources but doesn't communicate changes to this user space backend. >>> In this case, the -

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-04-23 Thread Avi Kivity
Jan Kiszka wrote: Avi Kivity wrote: Jan Kiszka wrote: Huh, it is! Then the problem is a KVM-only thing: The kernel part hooks onto those resources but doesn't communicate changes to this user space backend. In this case, the -no-kvm-pit option should help. Probably fin

Re: [Qemu-devel] Re: Question about KVM and PC speaker

2009-04-23 Thread Jan Kiszka
Avi Kivity wrote: > Jan Kiszka wrote: >> Huh, it is! Then the problem is a KVM-only thing: The kernel part hooks >> onto those resources but doesn't communicate changes to this user space >> backend. >> > > In this case, the -no-kvm-pit option should help. Probably fine in many cases (where th