mirror of https://github.com/xemu-project/xemu.git
vl.c: Abort on unknown -numa option type
Abort in case an invalid -numa option is provided, instead of silently ignoring it. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8f302cb090
commit
12e53a9d59
3
vl.c
3
vl.c
|
@ -1293,6 +1293,9 @@ static void numa_add(const char *optarg)
|
||||||
bitmap_set(node_cpumask[nodenr], value, endvalue-value+1);
|
bitmap_set(node_cpumask[nodenr], value, endvalue-value+1);
|
||||||
}
|
}
|
||||||
nb_numa_nodes++;
|
nb_numa_nodes++;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "Invalid -numa option: %s\n", option);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue