Skip to contentSkip to conversation

readconfig with machine section and type option ignored

Qemu-devel William Dauchy 3 participants 4 messages Dec 11, 2014 – Dec 16, 2014

lore
Share & tools
lore
#0 lore raw

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,

Signature · 1 line
William
#1 lore raw
Quoted 9 lines · William Dauchy

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:

Quoted 8 lines

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.

Quoted 1 line

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".

#2 lore raw
Quoted 3 lines · Markus Armbruster

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

Signature · 1 line
William
#3 lore raw
In reply to Markus Armbruster
Quoted 22 lines · Markus Armbruster
Quoted 9 lines · William Dauchy

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:

Quoted 8 lines

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.

Quoted 8 lines
Quoted 1 line

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