The QMP version was added in qemu commit
ab49ab5c488237f3656689 which
is included in v1.1.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
goto cleanup;
- if (qemuMonitorJSONHasError(reply, "CommandNotFound")) {
- VIR_DEBUG("inject-nmi command not found, trying HMP");
- if (qemuMonitorTextInjectNMI(mon) < 0)
- goto cleanup;
- } else {
- if (qemuMonitorJSONCheckError(cmd, reply) < 0)
- goto cleanup;
- }
+ if (qemuMonitorJSONCheckError(cmd, reply) < 0)
+ goto cleanup;
ret = 0;
cleanup: