mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
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: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
This commit is contained in:
parent
1a50ba2cb0
commit
856a482207
@ -2377,6 +2377,7 @@ qemuCapsInitQMP(qemuCapsPtr caps,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
caps->version = major * 1000000 + minor * 1000 + micro;
|
||||||
caps->usedQMP = true;
|
caps->usedQMP = true;
|
||||||
|
|
||||||
qemuCapsInitQMPBasic(caps);
|
qemuCapsInitQMPBasic(caps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user