]> git.proxmox.com Git - mirror_qemu.git/commit
numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus() result
authorIgor Mammedov <imammedo@redhat.com>
Tue, 30 May 2017 16:23:59 +0000 (18:23 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Jun 2017 17:59:08 +0000 (14:59 -0300)
commitf75cd44de0ec20d72dc9eef5e6e48a8874c40727
tree9d0bf65fa76d48ab5df56c70ee924fe378b7800d
parentd41f3e750d2c06c613cb1b8db7724f0fbc0a2b14
numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus() result

HMP command 'info numa' is the last external user that access
CPUState::numa_node field directly. In order to move it to CPU
classes that actually use it, eliminate direct access and use
an alternative approach by using result of qmp_query_cpus(),
which provides topology properties CPU threads are associated
with (including node-id).

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1496161442-96665-5-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
monitor.c