[libvirt] [PATCH 4/4] Ignore error from query-cpu-definitions
Eric Blake
eblake at redhat.com
Fri Sep 28 15:21:32 UTC 2012
On 09/28/2012 08:58 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Some architectures provide the query-cpu-definitions command,
> but are set to always return a "GenericError" from it :-(
> Catch this & treat it as if there was an empty list of CPUs
> returned
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/qemu/qemu_capabilities.c | 2 +-
> src/qemu/qemu_monitor.c | 1 -
> src/qemu/qemu_monitor_json.c | 12 ++++++++++++
> 3 files changed, 13 insertions(+), 2 deletions(-)
ACK.
> +++ b/src/qemu/qemu_capabilities.c
> @@ -2240,7 +2240,7 @@ qemuCapsInitQMP(qemuCapsPtr caps)
> VIR_DEBUG("Got version %d.%d.%d (%s)",
> major, minor, micro, NULLSTR(package));
>
> - if (!(major >= 1 && minor >= 1 && micro >= 90)) {
> + if (!(major >= 1 || (major == 1 && minor >= 1))) {
> VIR_DEBUG("Not new enough for QMP capabilities detection");
> ret = 0;
> goto cleanup;
This needs to be squashed into 3/4.
> +++ b/src/qemu/qemu_monitor.c
> @@ -843,7 +843,6 @@ void qemuMonitorClose(qemuMonitorPtr mon)
> mon->watch = 0;
> }
> VIR_FORCE_CLOSE(mon->fd);
> - fprintf(stderr, "Closing monitr\n");
> }
>
This needs to be squashed into 2/4.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120928/ccfd79cc/attachment-0001.sig>
More information about the libvir-list
mailing list