Received: from eggs.gnu.org ([140.186.70.92]:54997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0UMJ-0004UE-HE for qemu-devel@nongnu.org; Thu, 23 Feb 2012 03:49:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0UMD-0003Ga-Db for qemu-devel@nongnu.org; Thu, 23 Feb 2012 03:49:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0UMD-0003GT-5v for qemu-devel@nongnu.org; Thu, 23 Feb 2012 03:48:57 -0500 From: Markus Armbruster References: <4F45F6C7.6010000@redhat.com> Date: Thu, 23 Feb 2012 09:48:53 +0100 In-Reply-To: (andrzej zaborowski's message of "Thu, 23 Feb 2012 09:25:53 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] "qemu -device ?" segfaults List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: andrzej zaborowski Cc: Gerd Hoffmann , "qemu-devel@nongnu.org" andrzej zaborowski writes: > On 23 February 2012 09:20, Gerd Hoffmann wrote: >> $subject says all, which pretty much breaks libvirt-managed qemu ... > > Also "device_add nonexistent-device" in the monitor gives a rather > unhelpful message: > > Parameter 'driver' expects device type "-device foo" is really shorthand for "-device driver=foo". And deep down in the bowels of qdev, where the error get reported, the value of parameter "driver" gets treated like any other parameter's value: if it's not within ACCEPTABLE-SET, complain "Parameter 'NAME' expected ACCEPTABLE-SET". Overuse of syntactic sugar considered harmful.