From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IEU1x-0002Oo-9L for qemu-devel@nongnu.org; Fri, 27 Jul 2007 13:55:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IEU1w-0002OR-G4 for qemu-devel@nongnu.org; Fri, 27 Jul 2007 13:55:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IEU1v-0002OG-P8 for qemu-devel@nongnu.org; Fri, 27 Jul 2007 13:55:11 -0400 Received: from wx-out-0506.google.com ([66.249.82.239]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IEU1v-0003ay-A7 for qemu-devel@nongnu.org; Fri, 27 Jul 2007 13:55:11 -0400 Received: by wx-out-0506.google.com with SMTP id h31so818116wxd for ; Fri, 27 Jul 2007 10:55:10 -0700 (PDT) Message-ID: <46AA317C.7010908@codemonkey.ws> Date: Fri, 27 Jul 2007 12:55:08 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: QEMU Automated Testing (was [Qemu-devel] qemu Makefile.target vl.h hw/acpi.c hw/adlib.c ...) References: <685454.54168.qm@web54108.mail.re2.yahoo.com> <200707271838.20201.paul@codesourcery.com> In-Reply-To: <200707271838.20201.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: n schembr Paul Brook wrote: >>> As Qemu cannot use multicore CPUs (partially due to missing thread >>> safety), yet, you won't benefit from this unless you want to run >>> multiple instances of Qemu in parallel. >>> >> how close is thread safey? >> > > In a useful form: a fair way off. > > It's relatively simple to hack something together than runs. Making it work > correctly and go fast is much harder though. My current prototype (running on > 2 cores) runs about a quarter the speed of normal qemu, and dies shortly > after booting because the guest atomic synchronisation primitives don't work > right. > This later problem seems like the hardest to solve to me. Did you have any ideas here that don't involve hand coding the translation for atomic instructions? Regards, Anthony Liguori > Either way, for a tinderbox or automated testing yo *do* have lots of > different tests you can run in parallel, so it doesn't matter that each qemu > instance only uses one core. We're only talking about small SMP here - maybe > 16 cores, but not thousands. > > Paul > > > >