From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lx2wi-0008C8-65 for qemu-devel@nongnu.org; Thu, 23 Apr 2009 13:42:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lx2wd-00088t-Fa for Qemu-devel@nongnu.org; Thu, 23 Apr 2009 13:42:47 -0400 Received: from [199.232.76.173] (port=36744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lx2wd-00088q-Cm for Qemu-devel@nongnu.org; Thu, 23 Apr 2009 13:42:43 -0400 Received: from gecko.sbs.de ([194.138.37.40]:23620) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lx2wc-0001Wp-MF for Qemu-devel@nongnu.org; Thu, 23 Apr 2009 13:42:43 -0400 Message-ID: <49F0A876.4050902@siemens.com> Date: Thu, 23 Apr 2009 19:42:14 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Question about KVM and PC speaker References: <49EF69BC.90300@gmx.de> <49F01C8D.1010203@web.de> <20090423083252.GB5277@const.bordeaux.inria.fr> <49F031C2.5000204@siemens.com> <20090423092546.GF5277@const.bordeaux.inria.fr> <49F035E7.5080906@siemens.com> <49F03A00.8060502@redhat.com> <49F0430A.8010300@siemens.com> <49F04C80.2040204@redhat.com> In-Reply-To: <49F04C80.2040204@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Samuel Thibault , Qemu-devel@nongnu.org, kvm-devel , Simon Bienlein 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 -no-kvm-pit option should help. >>> >> >> Probably fine in many cases (where the PIT is no longer used anyway), >> just a bit unintuitive for users. >> > > Yes, it's only a workaround. > >> I wonder why KVM moved port 0x61 handling into kernel space at all. By >> leaving it in pcspk hands and extending the latter to sync with the >> in-kernel PIT on sample generation, this speaker regression (of >> kvm-userspace) should have been avoidable. >> > > I'd rather not have partial components in the kernel. This case is > particularly icky though. But you surely don't want to issue the sound from kernel space. Moreover, these are separate components: the PIT doesn't bother about the speaker, if it's on or off. We just need to make pcspk KVM-aware. I think I will post a patch later today. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux