 3319b4efc2
			
		
	
	
		3319b4efc2
		
	
	
	
	
		
			
			it will allow to reuse set_numa_options() for parsing configuration commands received via QMP interface Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <1525423069-61903-3-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef SYSEMU_NUMA_H
 | |
| #define SYSEMU_NUMA_H
 | |
| 
 | |
| #include "qemu/bitmap.h"
 | |
| #include "sysemu/sysemu.h"
 | |
| #include "sysemu/hostmem.h"
 | |
| #include "hw/boards.h"
 | |
| 
 | |
| extern int nb_numa_nodes;   /* Number of NUMA nodes */
 | |
| extern bool have_numa_distance;
 | |
| 
 | |
| struct node_info {
 | |
|     uint64_t node_mem;
 | |
|     struct HostMemoryBackend *node_memdev;
 | |
|     bool present;
 | |
|     uint8_t distance[MAX_NODES];
 | |
| };
 | |
| 
 | |
| struct NumaNodeMem {
 | |
|     uint64_t node_mem;
 | |
|     uint64_t node_plugged_mem;
 | |
| };
 | |
| 
 | |
| extern NodeInfo numa_info[MAX_NODES];
 | |
| int parse_numa(void *opaque, QemuOpts *opts, Error **errp);
 | |
| void parse_numa_opts(MachineState *ms);
 | |
| void numa_complete_configuration(MachineState *ms);
 | |
| void query_numa_node_mem(NumaNodeMem node_mem[]);
 | |
| extern QemuOptsList qemu_numa_opts;
 | |
| void numa_legacy_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
 | |
|                                  int nb_nodes, ram_addr_t size);
 | |
| void numa_default_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
 | |
|                                   int nb_nodes, ram_addr_t size);
 | |
| void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp);
 | |
| #endif
 |