From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0sNP-0003CB-2R for qemu-devel@nongnu.org; Tue, 16 Dec 2014 08:41:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0sNK-0005eF-8I for qemu-devel@nongnu.org; Tue, 16 Dec 2014 08:41:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0sNK-0005e8-0U for qemu-devel@nongnu.org; Tue, 16 Dec 2014 08:41:18 -0500 Message-ID: <54903677.6000806@redhat.com> Date: Tue, 16 Dec 2014 15:41:11 +0200 From: Marcel Apfelbaum MIME-Version: 1.0 References: <20141211164208.GA14440@gandi.net> <87tx0vbxuo.fsf@blackfin.pond.sub.org> In-Reply-To: <87tx0vbxuo.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Markus Armbruster , William Dauchy Cc: qemu-devel@nongnu.org On 12/16/2014 02:09 PM, Markus Armbruster wrote: > 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". > I'll have a look at this, sure. Thanks, Marcel