diff options
author | Vadim Galitsyn | 2017-08-29 17:30:20 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2017-09-14 16:52:10 +0200 |
commit | 31959e82fb0537e09f6c53b78323c510d794a73c (patch) | |
tree | 1221972ce63a0ab179979baa82179674dec5afa3 /include/sysemu | |
parent | tests/hmp: test "none" machine with memory (diff) | |
download | qemu-31959e82fb0537e09f6c53b78323c510d794a73c.tar.gz qemu-31959e82fb0537e09f6c53b78323c510d794a73c.tar.xz qemu-31959e82fb0537e09f6c53b78323c510d794a73c.zip |
hmp: extend "info numa" with hotplugged memory information
Report amount of hotplugged memory in addition to total
amount per NUMA node.
Signed-off-by: Vadim Galitsyn <vadim.galitsyn@profitbricks.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: qemu-devel@nongnu.org
Message-Id: <20170829153022.27004-2-vadim.galitsyn@profitbricks.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/numa.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h index 610eece211..5c6df2820b 100644 --- a/include/sysemu/numa.h +++ b/include/sysemu/numa.h @@ -24,9 +24,14 @@ struct node_info { uint8_t distance[MAX_NODES]; }; +struct NumaNodeMem { + uint64_t node_mem; + uint64_t node_plugged_mem; +}; + extern NodeInfo numa_info[MAX_NODES]; void parse_numa_opts(MachineState *ms); -void query_numa_node_mem(uint64_t node_mem[]); +void query_numa_node_mem(NumaNodeMem node_mem[]); extern QemuOptsList qemu_numa_opts; void numa_set_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node); void numa_unset_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node); |