Revision 87d0a28e
b/vl.c | ||
---|---|---|
2927 | 2927 |
return tcg_has_work(); |
2928 | 2928 |
} |
2929 | 2929 |
|
2930 |
static void set_numa_modes(void) |
|
2931 |
{ |
|
2932 |
CPUState *env; |
|
2933 |
int i; |
|
2934 |
|
|
2935 |
for (env = first_cpu; env != NULL; env = env->next_cpu) { |
|
2936 |
for (i = 0; i < nb_numa_nodes; i++) { |
|
2937 |
if (node_cpumask[i] & (1 << env->cpu_index)) { |
|
2938 |
env->numa_node = i; |
|
2939 |
} |
|
2940 |
} |
|
2941 |
} |
|
2942 |
} |
|
2943 |
|
|
2930 | 2944 |
static int vm_can_run(void) |
2931 | 2945 |
{ |
2932 | 2946 |
if (powerdown_requested) |
... | ... | |
3735 | 3749 |
const char *chroot_dir = NULL; |
3736 | 3750 |
const char *run_as = NULL; |
3737 | 3751 |
#endif |
3738 |
CPUState *env; |
|
3739 | 3752 |
int show_vnc_port = 0; |
3740 | 3753 |
int defconfig = 1; |
3741 | 3754 |
|
... | ... | |
4851 | 4864 |
sighandler_setup(); |
4852 | 4865 |
#endif |
4853 | 4866 |
|
4854 |
for (env = first_cpu; env != NULL; env = env->next_cpu) { |
|
4855 |
for (i = 0; i < nb_numa_nodes; i++) { |
|
4856 |
if (node_cpumask[i] & (1 << env->cpu_index)) { |
|
4857 |
env->numa_node = i; |
|
4858 |
} |
|
4859 |
} |
|
4860 |
} |
|
4867 |
set_numa_modes(); |
|
4861 | 4868 |
|
4862 | 4869 |
current_machine = machine; |
4863 | 4870 |
|
Also available in: Unified diff