qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] readconfig with machine section and type option ignored
@ 2014-12-11 16:42 William Dauchy
  2014-12-16 12:09 ` Markus Armbruster
  0 siblings, 1 reply; 4+ messages in thread
From: William Dauchy @ 2014-12-11 16:42 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

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'}

Is it considered as a bug? I am using qemu-2.2

Thanks,
-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] readconfig with machine section and type option ignored
  2014-12-11 16:42 [Qemu-devel] readconfig with machine section and type option ignored William Dauchy
@ 2014-12-16 12:09 ` Markus Armbruster
  2014-12-16 12:38   ` William Dauchy
  2014-12-16 13:41   ` Marcel Apfelbaum
  0 siblings, 2 replies; 4+ messages in thread
From: Markus Armbruster @ 2014-12-16 12:09 UTC (permalink / raw)
  To: William Dauchy; +Cc: Marcel Apfelbaum, qemu-devel

William Dauchy <william@gandi.net> 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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] readconfig with machine section and type option ignored
  2014-12-16 12:09 ` Markus Armbruster
@ 2014-12-16 12:38   ` William Dauchy
  2014-12-16 13:41   ` Marcel Apfelbaum
  1 sibling, 0 replies; 4+ messages in thread
From: William Dauchy @ 2014-12-16 12:38 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Marcel Apfelbaum, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

On Dec16 13:09, Markus Armbruster wrote:
> 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".

yes indeed, the type option is also not working, and there was an older
report about it
-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] readconfig with machine section and type option ignored
  2014-12-16 12:09 ` Markus Armbruster
  2014-12-16 12:38   ` William Dauchy
@ 2014-12-16 13:41   ` Marcel Apfelbaum
  1 sibling, 0 replies; 4+ messages in thread
From: Marcel Apfelbaum @ 2014-12-16 13:41 UTC (permalink / raw)
  To: Markus Armbruster, William Dauchy; +Cc: qemu-devel

On 12/16/2014 02:09 PM, Markus Armbruster wrote:
> William Dauchy <william@gandi.net> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-16 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 16:42 [Qemu-devel] readconfig with machine section and type option ignored William Dauchy
2014-12-16 12:09 ` Markus Armbruster
2014-12-16 12:38   ` William Dauchy
2014-12-16 13:41   ` Marcel Apfelbaum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).