Received: from eggs.gnu.org ([208.118.235.92]:46089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1CG-0005F0-Qi for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:00:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz1CF-00059y-P2 for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:00:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1CF-00058g-Fe for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:00:51 -0400 From: Markus Armbruster References: <87obmmcxlh.fsf@blackfin.pond.sub.org> <87fw7ya42h.fsf@codemonkey.ws> <87ipcubhoc.fsf@blackfin.pond.sub.org> <87hasea1ie.fsf@blackfin.pond.sub.org> Date: Wed, 08 Aug 2012 09:50:26 +0200 In-Reply-To: <87hasea1ie.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Tue, 07 Aug 2012 22:30:17 +0200") Message-ID: <871ujh7rgd.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] For all targets and machine types: "start to monitor" smoke test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, Anthony Liguori Markus Armbruster writes: > Peter Maydell writes: > >> On 7 August 2012 20:55, Markus Armbruster wrote: >>> Anthony Liguori writes: >>>> Perhaps we could add a QEMUMachine parameter that indicates that the >>>> machine doesn't start without special options. >>> >>> Recommend to make it a string that lists the mandatory options. >> >> How are you going to say "need either option foo or option bar" ? I'm >> pretty sure we have some of those (eg "either you need to pass a flash >> image or a kernel"). > > Yes, we do. > > The string should be suitable for inserting into -help. Sufficiently common cases can also be delegated to generic code: * Maximum number of CPUs Got that: QEMUMachine member max_cpus, main() enforces it. * Require -kernel Have a flag in QEMUMachine, enforce in main(). * Require certain drives Have QEMUMachine declare minimum and maximum number drives of each BlockInterfaceType?