From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41474 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIRHa-0001ts-O8 for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:33:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIRHZ-0003Av-DW for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:33:34 -0500 Received: from mail-iw0-f173.google.com ([209.85.214.173]:63967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIRHZ-0003Ar-8u for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:33:33 -0500 Received: by iwn36 with SMTP id 36so1210774iwn.4 for ; Tue, 16 Nov 2010 11:33:32 -0800 (PST) Message-ID: <4CE2DC8B.7020401@codemonkey.ws> Date: Tue, 16 Nov 2010 13:33:31 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [Try2][PATCH] Initial implementation of a mpeg1 layer2 streaming audio driver. References: <4CDD5011.4050304@codemonkey.ws> <0CB55C3A-8A72-49DE-95D5-14BC9DA0268C@free.fr> <4CE18A64.6080405@codemonkey.ws> <6C2414FF-5595-417C-A210-DD9C9BC540B2@free.fr> <8F14B0BD-6839-4060-A7F4-A1DECEAA04C2@web.de> In-Reply-To: <8F14B0BD-6839-4060-A7F4-A1DECEAA04C2@web.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Andreas_F=E4rber?= Cc: =?ISO-8859-1?Q?Fran=E7ois_Revol?= , qemu-devel@nongnu.org On 11/16/2010 01:22 PM, Andreas Färber wrote: > Am 15.11.2010 um 22:53 schrieb François Revol: > >> I'm still having a hard time getting sound to work reliably in Haiku >> guests regardless the output or emulated card. OTH it works perfectly >> in VirtualBox with almost no cpu overhead. If anyone has a clue... >> It might be related to the use of RDTSC as primary time source, still >> it's the same in vbox. > > Did you check the time drift command line options? Iirc Gleb needed > some hacks for timer-related issues on Windows. Time drift correction is only applicable to the RTC and PIT and deals with catching up the periodic timers. The issue with the TSC as a time source is that it skips around during CPU migration. The easiest way to work around this is to simply pin your guest to a single physical CPU (assuming you're using KVM). With TCG, it depends, but you can actually end up accessing the host TSC in which case, your SOL because the code in QEMU that uses the host TSC assumes a UP host which aren't all that common anymore :-) Regards, Anthony Liguori >> (does [KVM] even work on OSX ?) > > No. > > Andreas