machine: remove 'query-cpus' QMP command

The newer 'query-cpus-fast' command avoids side effects on the guest
execution. Note that some of the field names are different in the
'query-cpus-fast' command.

Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Tested-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-02-22 12:54:55 +00:00
parent cbde7be900
commit 8af54b9172
11 changed files with 22 additions and 258 deletions

View file

@ -110,7 +110,7 @@ class Engine(object):
src_vcpu_time = []
src_pid = src.get_pid()
vcpus = src.command("query-cpus")
vcpus = src.command("query-cpus-fast")
src_threads = []
for vcpu in vcpus:
src_threads.append(vcpu["thread_id"])