mirror of https://github.com/proxmox/mirror_qemu
parent
f8be67ee14
commit
87d0a28e78
23
vl.c
23
vl.c
|
@ -2927,6 +2927,20 @@ static bool tcg_cpu_exec(void)
|
||||||
return tcg_has_work();
|
return tcg_has_work();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void set_numa_modes(void)
|
||||||
|
{
|
||||||
|
CPUState *env;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (env = first_cpu; env != NULL; env = env->next_cpu) {
|
||||||
|
for (i = 0; i < nb_numa_nodes; i++) {
|
||||||
|
if (node_cpumask[i] & (1 << env->cpu_index)) {
|
||||||
|
env->numa_node = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int vm_can_run(void)
|
static int vm_can_run(void)
|
||||||
{
|
{
|
||||||
if (powerdown_requested)
|
if (powerdown_requested)
|
||||||
|
@ -3735,7 +3749,6 @@ int main(int argc, char **argv, char **envp)
|
||||||
const char *chroot_dir = NULL;
|
const char *chroot_dir = NULL;
|
||||||
const char *run_as = NULL;
|
const char *run_as = NULL;
|
||||||
#endif
|
#endif
|
||||||
CPUState *env;
|
|
||||||
int show_vnc_port = 0;
|
int show_vnc_port = 0;
|
||||||
int defconfig = 1;
|
int defconfig = 1;
|
||||||
|
|
||||||
|
@ -4851,13 +4864,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
sighandler_setup();
|
sighandler_setup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (env = first_cpu; env != NULL; env = env->next_cpu) {
|
set_numa_modes();
|
||||||
for (i = 0; i < nb_numa_nodes; i++) {
|
|
||||||
if (node_cpumask[i] & (1 << env->cpu_index)) {
|
|
||||||
env->numa_node = i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
current_machine = machine;
|
current_machine = machine;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue