提交 856a4822 编写于 作者: V Viktor Mihajlovski 提交者: Daniel P. Berrange

qemu: Add QEMU version computation to QMP probing

With QMP capability probing, the version was not set.
virsh version returns:
...
Cannot extract running QEMU hypervisor version

This is fixed by computing caps->version from QMP major,
minor, micro values.
Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
上级 1a50ba2c
......@@ -2377,6 +2377,7 @@ qemuCapsInitQMP(qemuCapsPtr caps,
goto cleanup;
}
caps->version = major * 1000000 + minor * 1000 + micro;
caps->usedQMP = true;
qemuCapsInitQMPBasic(caps);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册