diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-02-22 12:54:55 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-03-18 09:22:55 +0000 |
commit | 8af54b9172ff3b9bbdbb3191ed84994d275a0d81 (patch) | |
tree | c664dd47c9b01338d7266c2a71e7219702e66eb6 /tests/qtest/numa-test.c | |
parent | cbde7be900d2a2279cbc4becb91d1ddd6a014def (diff) | |
download | qemu-8af54b9172ff3b9bbdbb3191ed84994d275a0d81.zip qemu-8af54b9172ff3b9bbdbb3191ed84994d275a0d81.tar.gz qemu-8af54b9172ff3b9bbdbb3191ed84994d275a0d81.tar.bz2 |
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>
Diffstat (limited to 'tests/qtest/numa-test.c')
-rw-r--r-- | tests/qtest/numa-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qtest/numa-test.c b/tests/qtest/numa-test.c index b25ebf9..dc0ec57 100644 --- a/tests/qtest/numa-test.c +++ b/tests/qtest/numa-test.c @@ -72,7 +72,7 @@ static void test_mon_partial(const void *data) static QList *get_cpus(QTestState *qts, QDict **resp) { - *resp = qtest_qmp(qts, "{ 'execute': 'query-cpus' }"); + *resp = qtest_qmp(qts, "{ 'execute': 'query-cpus-fast' }"); g_assert(*resp); g_assert(qdict_haskey(*resp, "return")); return qdict_get_qlist(*resp, "return"); @@ -97,10 +97,10 @@ static void test_query_cpus(const void *data) int64_t cpu_idx, node; cpu = qobject_to(QDict, e); - g_assert(qdict_haskey(cpu, "CPU")); + g_assert(qdict_haskey(cpu, "cpu-index")); g_assert(qdict_haskey(cpu, "props")); - cpu_idx = qdict_get_int(cpu, "CPU"); + cpu_idx = qdict_get_int(cpu, "cpu-index"); props = qdict_get_qdict(cpu, "props"); g_assert(qdict_haskey(props, "node-id")); node = qdict_get_int(props, "node-id"); |