libxl_qmp: Change qmp_qemu_check_version to compare version
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 9 Nov 2018 17:45:54 +0000 (17:45 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:35 +0000 (14:57 +0000)
commit535dface491c4132d5b7e3af077058b25e1cd40c
treef2264fca20df1cb80255c9b7c3c19cea421d293d
parent4a5a27c55e57d17ac8b78cf4db060249c02727e2
libxl_qmp: Change qmp_qemu_check_version to compare version

This patch makes the function simpler to read. It also add the ability
for a caller to tell if QEMU is newer or have the exact version.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_qmp.c