From patchwork Mon Aug 8 00:58:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 1042912 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p780xIGv026317 for ; Mon, 8 Aug 2011 00:59:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751864Ab1HHA7G (ORCPT ); Sun, 7 Aug 2011 20:59:06 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:50127 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751656Ab1HHA7D (ORCPT ); Sun, 7 Aug 2011 20:59:03 -0400 Received: by mail-pz0-f42.google.com with SMTP id 37so7394479pzk.1 for ; Sun, 07 Aug 2011 17:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=8JXZGQVz+v5vxIJL/w5IbAZUb29A7tYYyDvPeAjAa1c=; b=twM5Gcl7R3bHWwv6I2rBeuKHrJh7QFWMnFGg4zMXP2mgolJhJSpokTyU4q+uM8gCNu pCbUY2za+dFO3w8uLhmoDt+mMKUs1RId+8+jKtqEjQTtilAu8ek/Owd1UXhpA0hJemTK zzfE0NQHYW3Tx/ij3QCmKswLiYo/H3Sq2bF70= Received: by 10.142.169.4 with SMTP id r4mr5316328wfe.423.1312765142805; Sun, 07 Aug 2011 17:59:02 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id l7sm5745792pbh.58.2011.08.07.17.58.59 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Aug 2011 17:59:02 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH 2/4] kvm tools: Make --virtio-9p option shorter Date: Mon, 8 Aug 2011 08:58:10 +0800 Message-Id: <1312765092-21190-2-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1312765092-21190-1-git-send-email-asias.hejun@gmail.com> References: <1312765092-21190-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Aug 2011 00:59:18 +0000 (UTC) This patch changes --virtio-9p to --9p because: 1. It's shorter 2. No need to add virtio prior to 9p since we use virtio by default Signed-off-by: Asias He --- tools/kvm/builtin-run.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 18e76b0..a4988aa 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -164,8 +164,8 @@ static const struct option options[] = { OPT_INCR('\0', "rng", &virtio_rng, "Enable virtio Random Number Generator"), OPT_STRING('\0', "dev", &dev, "device_file", "KVM device file"), - OPT_CALLBACK('\0', "virtio-9p", NULL, "dirname,tag_name", - "Enable 9p over virtio", virtio_9p_rootdir_parser), + OPT_CALLBACK('\0', "9p", NULL, "dir_to_share,tag_name", + "Enable virtio 9p to share files between host and guest", virtio_9p_rootdir_parser), OPT_BOOLEAN('\0', "balloon", &balloon, "Enable virtio balloon"), OPT_BOOLEAN('\0', "vnc", &vnc, "Enable VNC framebuffer"), OPT_BOOLEAN('\0', "sdl", &sdl, "Enable SDL framebuffer"),