From patchwork Thu May 5 19:53:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 758142 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p45Jrots024964 for ; Thu, 5 May 2011 19:53:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321Ab1EETxr (ORCPT ); Thu, 5 May 2011 15:53:47 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:36576 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223Ab1EETxq (ORCPT ); Thu, 5 May 2011 15:53:46 -0400 Received: by wya21 with SMTP id 21so1884317wya.19 for ; Thu, 05 May 2011 12:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=ydtvrLQ1hlHWyzC6Z/UoE8+kS7kEWI+dcIUXM4YVlhU=; b=mxmP4D/SHaUw8bZMM5i6CHIi1WexJXww+/vhn4I30YhFEWYRFrQrudu9m83MDeQzi1 ZU9pY9Dj6l5ckcqGXInlM8nzKC5ydW4A6FxUE+e/XTlosynXRTevQUMUNGC46SrB9T4v joEIaYPsiBki+ex8JNNbkiq0VrbNDA47bEdCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=W2qYbXuJA3gkYhE5579oxVRWEfNf71CStkXyYjvRcsTAVxX3hAY6UKtSManft6P3bi tx4+ZkjNloJoJIdbSUvIk1unbWuvmsNuHkUUCAhz+q1jl3cuy2pi+USXjX2l2V07lp5s rpc9cJTdYKnrL1NJMBVv11lxO6nvNi4yqzbuQ= Received: by 10.216.220.139 with SMTP id o11mr2914874wep.12.1304625225588; Thu, 05 May 2011 12:53:45 -0700 (PDT) Received: from localhost.localdomain (bzq-109-65-211-213.red.bezeqint.net [109.65.211.213]) by mx.google.com with ESMTPS id j49sm1270441wer.14.2011.05.05.12.53.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2011 12:53:45 -0700 (PDT) From: Sasha Levin To: penberg@kernel.org Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, kvm@vger.kernel.org, Sasha Levin Subject: [PATCH] kvm tools: Fix loading root device as image Date: Thu, 5 May 2011 22:53:32 +0300 Message-Id: <1304625212-18951-1-git-send-email-levinsasha928@gmail.com> X-Mailer: git-send-email 1.7.5.rc3 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 (demeter2.kernel.org [140.211.167.43]); Thu, 05 May 2011 19:53:50 +0000 (UTC) Fix the loading of root device when no image name was specified. Signed-off-by: Sasha Levin --- tools/kvm/kvm-run.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 2ff13d3..d5a952f 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -420,6 +420,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) if (hi) { image_filename[0] = hi; readonly_image[0] = true; + image_count++; } }