From patchwork Fri Jan 11 18:15:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 211398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D3D672C033F for ; Sat, 12 Jan 2013 05:15:28 +1100 (EST) Received: from localhost ([::1]:44052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttj8Y-000583-UY for incoming@patchwork.ozlabs.org; Fri, 11 Jan 2013 13:15:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttj6t-0001Tm-QG for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttj6p-00031l-OL for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttj6p-00031Q-H6 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:39 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0BIDbhC014917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jan 2013 13:13:37 -0500 Received: from blackpad.lan.raisama.net (vpn1-7-42.gru2.redhat.com [10.97.7.42]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0BIDaJ9013537; Fri, 11 Jan 2013 13:13:37 -0500 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id EFD28200E31; Fri, 11 Jan 2013 16:15:18 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 11 Jan 2013 16:15:00 -0200 Message-Id: <1357928108-21066-3-git-send-email-ehabkost@redhat.com> In-Reply-To: <1357928108-21066-1-git-send-email-ehabkost@redhat.com> References: <1357928108-21066-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: libvir-list@redhat.com, Chegu Vinod , Anthony Liguori Subject: [Qemu-devel] [PATCH 02/10] vl.c: Abort on unknown -numa option type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Instead of silently ignoring them, abort in case an invalid -numa option is provided. Signed-off-by: Eduardo Habkost --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 93fde36..042cc7f 100644 --- a/vl.c +++ b/vl.c @@ -1101,6 +1101,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); } }