From patchwork Thu Feb 7 06:50:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 218830 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 878D12C008D for ; Thu, 7 Feb 2013 18:06:07 +1100 (EST) Received: from localhost ([::1]:57462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3LYb-0004NX-Ir for incoming@patchwork.ozlabs.org; Thu, 07 Feb 2013 02:06:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3LYL-0004GM-4E for qemu-devel@nongnu.org; Thu, 07 Feb 2013 02:05:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3LYF-00028o-Vi for qemu-devel@nongnu.org; Thu, 07 Feb 2013 02:05:48 -0500 Received: from db3ehsobe002.messaging.microsoft.com ([213.199.154.140]:57961 helo=db3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3LYF-00027i-HO for qemu-devel@nongnu.org; Thu, 07 Feb 2013 02:05:43 -0500 Received: from mail13-db3-R.bigfish.com (10.3.81.244) by DB3EHSOBE004.bigfish.com (10.3.84.24) with Microsoft SMTP Server id 14.1.225.23; Thu, 7 Feb 2013 06:50:37 +0000 Received: from mail13-db3 (localhost [127.0.0.1]) by mail13-db3-R.bigfish.com (Postfix) with ESMTP id BA813300409; Thu, 7 Feb 2013 06:50:37 +0000 (UTC) X-Forefront-Antispam-Report: CIP:149.199.60.83; KIP:(null); UIP:(null); IPV:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI X-SpamScore: 1 X-BigFish: VPS1(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bh8275dhz2fh95h668h839hd24hf0ah119dh1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h906i1155h) Received-SPF: pass (mail13-db3: domain of xilinx.com designates 149.199.60.83 as permitted sender) client-ip=149.199.60.83; envelope-from=peter.crosthwaite@xilinx.com; helo=xsj-gw1 ; helo=xsj-gw1 ; Received: from mail13-db3 (localhost.localdomain [127.0.0.1]) by mail13-db3 (MessageSwitch) id 1360219834638744_18797; Thu, 7 Feb 2013 06:50:34 +0000 (UTC) Received: from DB3EHSMHS016.bigfish.com (unknown [10.3.81.246]) by mail13-db3.bigfish.com (Postfix) with ESMTP id 925F0260050; Thu, 7 Feb 2013 06:50:34 +0000 (UTC) Received: from xsj-gw1 (149.199.60.83) by DB3EHSMHS016.bigfish.com (10.3.87.116) with Microsoft SMTP Server id 14.1.225.23; Thu, 7 Feb 2013 06:50:32 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1.xilinx.com) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1U3LJX-00031m-RR; Wed, 06 Feb 2013 22:50:31 -0800 From: Peter Crosthwaite To: Date: Thu, 7 Feb 2013 16:50:31 +1000 X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: X-RCIS-Action: ALLOW MIME-Version: 1.0 Message-ID: <60bf6912-afa5-40e6-86ce-37decb3885c1@DB3EHSMHS016.ehs.local> X-OriginatorOrg: xilinx.com X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 213.199.154.140 Cc: peter.maydell@linaro.org, Peter Crosthwaite , i.mitsyanko@samsung.com, afaerber@suse.de, edgar.iglesias@gmail.com Subject: [Qemu-devel] [PATCH v9 2/3] vl.c: allow for repeated -sd arguments 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 Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock. Acked-by: Igor Mitsyanko Reviewed-by: Peter Maydell Signed-off-by: Peter Crosthwaite --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index a8dc73d..a6cd940 100644 --- a/vl.c +++ b/vl.c @@ -2986,7 +2986,7 @@ int main(int argc, char **argv, char **envp) drive_add(IF_MTD, -1, optarg, MTD_OPTS); break; case QEMU_OPTION_sd: - drive_add(IF_SD, 0, optarg, SD_OPTS); + drive_add(IF_SD, -1, optarg, SD_OPTS); break; case QEMU_OPTION_pflash: drive_add(IF_PFLASH, -1, optarg, PFLASH_OPTS);