projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f302cb
)
vl.c: Abort on unknown -numa option type
author
Eduardo Habkost
<ehabkost@redhat.com>
Mon, 4 Feb 2013 18:27:47 +0000
(16:27 -0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 4 Feb 2013 20:38:33 +0000
(14:38 -0600)
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>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 0dae44cd602bc866e0c21588239e47db3edd56ba..586aa9a70a67e8c419e37ebf5240491dc945aebb 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-1293,6
+1293,9
@@
static void numa_add(const char *optarg)
bitmap_set(node_cpumask[nodenr], value, endvalue-value+1);
}
nb_numa_nodes++;
+ } else {
+ fprintf(stderr, "Invalid -numa option: %s\n", option);
+ exit(1);
}
}