mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
4e5c3a3742
commit
31959e82fb
4 changed files with 26 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue