From patchwork Wed May 11 18:01:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pekka Enberg X-Patchwork-Id: 777842 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4BI1slN000963 for ; Wed, 11 May 2011 18:01:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754118Ab1EKSBv (ORCPT ); Wed, 11 May 2011 14:01:51 -0400 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:56968 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095Ab1EKSBt (ORCPT ); Wed, 11 May 2011 14:01:49 -0400 Received: from localhost (localhost [127.0.0.1]) by filtteri1.pp.htv.fi (Postfix) with ESMTP id D36F78BBF1; Wed, 11 May 2011 21:01:48 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp6.welho.com ([213.243.153.40]) by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new, port 10024) with ESMTP id eWW40l797aTO; Wed, 11 May 2011 21:01:48 +0300 (EEST) Received: from localhost.localdomain (cs181148025.pp.htv.fi [82.181.148.25]) by smtp6.welho.com (Postfix) with ESMTP id 632205BC00B; Wed, 11 May 2011 21:01:48 +0300 (EEST) From: Pekka Enberg To: kvm@vger.kernel.org Cc: Pekka Enberg , Asias He , Avi Kivity , Cyrill Gorcunov , Ingo Molnar , Prasad Joshi , Sasha Levin Subject: [PATCH 2/2] kvm tools: Print out important command line options at startup Date: Wed, 11 May 2011 21:01:46 +0300 Message-Id: <1305136906-14496-2-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1305136906-14496-1-git-send-email-penberg@kernel.org> References: <1305136906-14496-1-git-send-email-penberg@kernel.org> 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]); Wed, 11 May 2011 18:01:55 +0000 (UTC) It's important to know what the guest configuration looks like when debugging issues so print out important command line options at startup: $ ./kvm run -k ../../arch/x86/boot/bzImage -m 512 # kvm run -k ../../arch/x86/boot/bzImage -m 512 -c 1 Suggested-by: Ingo Molnar Cc: Asias He Cc: Avi Kivity Cc: Cyrill Gorcunov Cc: Ingo Molnar Cc: Prasad Joshi Cc: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/kvm-run.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 9b5176f..5b56779 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -476,6 +476,8 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) } free(hi); + printf(" # kvm run -k %s -m %Lu -c %d\n", kernel_filename, ram_size / 1023 / 1024, nrcpus); + if (!kvm__load_kernel(kvm, kernel_filename, initrd_filename, real_cmdline)) die("unable to load kernel %s", kernel_filename);