]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix up the default machine type for QMP probing
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 30 Nov 2012 18:22:42 +0000 (11:22 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 30 Nov 2012 18:56:57 +0000 (11:56 -0700)
commit3c465728bfac8a5cd9ab0b754b508dd0a6c016f5
treea31a93de6a06a0ab6545417017021de3d8ad319e
parentd01e427e01e272825d3c60acbace11c7e3154ca5
qemu: Fix up the default machine type for QMP probing

The default machine type must be stored in the first element of
the caps->machineTypes array. This was done for help output
parsing but not for QMP probing.

Added a helper function qemuSetDefaultMachine to apply the same
fix up for both probing methods.

Further, it was necessary to set caps->nmachineTypes after QMP
probing.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_capabilities.c