From patchwork Wed Jan 16 18:28:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/8] vl.c: Abort on unknown -numa option type Date: Wed, 16 Jan 2013 08:28:48 -0000 From: Eduardo Habkost X-Patchwork-Id: 212966 Message-Id: <1358360933-5323-4-git-send-email-ehabkost@redhat.com> To: qemu-devel@nongnu.org, Anthony Liguori Cc: Chegu Vinod Abort in case an invalid -numa option is provided, instead of silently ignoring it. Signed-off-by: Eduardo Habkost --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index f29d926..1cf8ba6 100644 --- a/vl.c +++ b/vl.c @@ -1290,6 +1290,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); } }