]> xenbits.xensource.com Git - xen.git/commit
libxl: Assert qmp_ev's state in qmp_ev_qemu_compare_version
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 11 May 2021 09:28:07 +0000 (10:28 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 15 Jun 2021 12:56:26 +0000 (13:56 +0100)
commit0ff26a3225d69ffec76fe5aca8296852fa951204
treeb5281864e1fe32e90363bb4a0641eaea52139d46
parent85760c03d664400368a3f76ae0225307c25049a7
libxl: Assert qmp_ev's state in qmp_ev_qemu_compare_version

We are supposed to read the version information only when qmp_ev is in
state "Connected" (that correspond to state==qmp_state_connected),
assert it so that the function isn't used too early.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
tools/libs/light/libxl_qmp.c