Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnZHk-0006Cb-5T for qemu-devel@nongnu.org; Wed, 08 Oct 2008 09:41:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnZHi-0006BC-6K for qemu-devel@nongnu.org; Wed, 08 Oct 2008 09:41:03 -0400 Received: from [199.232.76.173] (port=38292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnZHi-0006B0-0x for qemu-devel@nongnu.org; Wed, 08 Oct 2008 09:41:02 -0400 Received: from jaguar.mkp.net ([192.139.46.146]:39987) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnZHh-0003ue-Nk for qemu-devel@nongnu.org; Wed, 08 Oct 2008 09:41:01 -0400 Sender: jes@jaguar.mkp.net Subject: Re: [Qemu-devel] [patch 2/2] machine struct - specify max_cpus at the per machine level References: <48EA0E7F.9090100@sgi.com> From: Jes Sorensen Date: 08 Oct 2008 09:40:35 -0400 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 >>>>> "andrzej" == andrzej zaborowski writes: andrzej> 2008/10/6 Jes Sorensen : >> --- qemu.orig/hw/an5206.c +++ qemu/hw/an5206.c @@ -92,4 +92,5 @@ >> QEMUMachine an5206_machine = { .desc = "Arnewsh 5206", .init = >> an5206_init, .ram_require = 512, + .max_cpus = 1, }; andrzej> No machine has 0 cpus so there's no point specifying = 1 in andrzej> every machine instead of making it the default. The other andrzej> fields were thought so that they don't have to be specified andrzej> except for non-default values. Well making 0 mean 1 is even worse, and adding a 1 in those isn't bad. Some of the options obviously cannot be left empty and it doesn't hurt to require this one. Cheers, Jes