]> xenbits.xensource.com Git - xen.git/commit
libxl: Replace deprecated QMP command by "query-cpus-fast"
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 11 May 2021 09:28:03 +0000 (10:28 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 15 Jun 2021 12:56:26 +0000 (13:56 +0100)
commitd5f54009dba11d04bfe2a28eee47b994de66b84a
tree3ee5e69c63cd4a7de5a28da0c2ef6b4f2557dcb6
parent8c9ed863738ff9e8b91975d6aa4464e7e8324eb7
libxl: Replace deprecated QMP command by "query-cpus-fast"

We use the deprecated QMP command "query-cpus" which is removed in the
QEMU 6.0 release. There's a replacement which is "query-cpus-fast",
and have been available since QEMU 2.12 (April 2018).

This patch try the new command first and when the command isn't
available, it fall back to the deprecated one so libxl still works
with older QEMU versions.

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