From patchwork Mon Aug 8 00:58:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 1042902 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 p780xIGw026317 for ; Mon, 8 Aug 2011 00:59:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751664Ab1HHA7H (ORCPT ); Sun, 7 Aug 2011 20:59:07 -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 S1751799Ab1HHA7G (ORCPT ); Sun, 7 Aug 2011 20:59:06 -0400 Received: by mail-pz0-f42.google.com with SMTP id 37so7394479pzk.1 for ; Sun, 07 Aug 2011 17:59:06 -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=+Iur4br/RuePrBYNvfYVPyyAgbhKW5VQDdPi3mL0dg4=; b=aPeHLbk1nEicYVlgnfE84mi8zmUQrDLht+HaKmF7QHqNsUC4VUxrBvTnlQDvTqob4U A3DMZX+lph+PO/Hbqo+3y2m5CIXxfmFHr2NPwPtqHc3aUpF+dt4xSwoqATGVb+PY+oAT GCn0ENd29lv+xQQ3Fvix7g8WYMmXdARM8NAbM= Received: by 10.142.60.2 with SMTP id i2mr3532630wfa.224.1312765146121; Sun, 07 Aug 2011 17:59:06 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id l7sm5745792pbh.58.2011.08.07.17.59.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Aug 2011 17:59:05 -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 3/4] kvm tools: Sort options of kvm run command Date: Mon, 8 Aug 2011 08:58:11 +0800 Message-Id: <1312765092-21190-3-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 sort options of kvm run command to make it look tidier and cleaner. Signed-off-by: Asias He --- tools/kvm/builtin-run.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index a4988aa..4279cb3 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -159,16 +159,15 @@ static const struct option options[] = { OPT_INTEGER('c', "cpus", &nrcpus, "Number of CPUs"), OPT_U64('m', "mem", &ram_size, "Virtual machine memory size in MiB."), OPT_CALLBACK('d', "disk", NULL, "image", "Disk image", img_name_parser), - OPT_STRING('\0', "console", &console, "serial or virtio", - "Console to use"), - OPT_INCR('\0', "rng", &virtio_rng, - "Enable virtio Random Number Generator"), - OPT_STRING('\0', "dev", &dev, "device_file", "KVM device file"), - 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"), + OPT_INCR('\0', "rng", &virtio_rng, "Enable virtio Random Number Generator"), + 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_STRING('\0', "console", &console, "serial or virtio", + "Console to use"), + OPT_STRING('\0', "dev", &dev, "device_file", "KVM device file"), OPT_GROUP("Kernel options:"), OPT_STRING('k', "kernel", &kernel_filename, "kernel",