From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0qwG-0000tF-Kn for qemu-devel@nongnu.org; Tue, 16 Dec 2014 07:09:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0qwB-0002sa-QH for qemu-devel@nongnu.org; Tue, 16 Dec 2014 07:09:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0qwB-0002sH-J5 for qemu-devel@nongnu.org; Tue, 16 Dec 2014 07:09:11 -0500 From: Markus Armbruster References: <20141211164208.GA14440@gandi.net> Date: Tue, 16 Dec 2014 13:09:03 +0100 In-Reply-To: <20141211164208.GA14440@gandi.net> (William Dauchy's message of "Thu, 11 Dec 2014 17:42:08 +0100") Message-ID: <87tx0vbxuo.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] readconfig with machine section and type option ignored List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: William Dauchy Cc: Marcel Apfelbaum , qemu-devel@nongnu.org William Dauchy writes: > Hello, > > I'm trying to specify machine type using the config file; for example: > > [machine] > type = "pc-i440fx-2.1" > > It seems to be ignored: > > qom-get path=/machine property=type > { u'return': u'pc-i440fx-2.2-machine'} > > It does work with the command line: > -M "pc-i440fx-2.1" > > qom-get path=/machine property=type > { u'return': u'pc-i440fx-2.1-machine'} Reproduced. > Is it considered as a bug? I am using qemu-2.2 Yes. Thanks for reporting it. Broken since main()'s case QEMU_OPTION_machine doesn't just parse its option argument with qemu_opts_parse(), it also implements parameter "type". Copying Marcel because "he touched it, he owns it".