From patchwork Tue Jul 19 19:23:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard W.M. Jones" X-Patchwork-Id: 105509 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DC6A3B6F62 for ; Wed, 20 Jul 2011 05:27:03 +1000 (EST) Received: from localhost ([::1]:44118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjFwY-0001eh-E0 for incoming@patchwork.ozlabs.org; Tue, 19 Jul 2011 15:26:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjFtU-0001e5-4Y for qemu-devel@nongnu.org; Tue, 19 Jul 2011 15:23:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjFtS-00039j-OX for qemu-devel@nongnu.org; Tue, 19 Jul 2011 15:23:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjFtS-00039Y-9a for qemu-devel@nongnu.org; Tue, 19 Jul 2011 15:23:46 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6JJNime003809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jul 2011 15:23:44 -0400 Received: from spin.home.annexia.org (vpn1-5-94.ams2.redhat.com [10.36.5.94]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6JJNfcu015874; Tue, 19 Jul 2011 15:23:43 -0400 From: "Richard W.M. Jones" To: qemu-devel@nongnu.org Date: Tue, 19 Jul 2011 20:23:38 +0100 Message-Id: <1311103418-29380-2-git-send-email-rjones@redhat.com> In-Reply-To: <1311103418-29380-1-git-send-email-rjones@redhat.com> References: <1311103418-29380-1-git-send-email-rjones@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH] Remove debugging messages. 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 From: "Richard W.M. Jones" When using qemu -machine accel=kvm:tcg, if KVM is not available you get a load of debugging output: Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory Back to tcg accelerator. Signed-off-by: Richard W.M. Jones --- kvm-all.c | 1 - vl.c | 14 -------------- 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index cbc2532..35d698b 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -713,7 +713,6 @@ int kvm_init(void) s->vmfd = -1; s->fd = qemu_open("/dev/kvm", O_RDWR); if (s->fd == -1) { - fprintf(stderr, "Could not access KVM kernel module: %m\n"); ret = -errno; goto err; } diff --git a/vl.c b/vl.c index fcd7395..83a08b6 100644 --- a/vl.c +++ b/vl.c @@ -1922,7 +1922,6 @@ static int configure_accelerator(void) char buf[10]; int i, ret; bool accel_initalised = 0; - bool init_failed = 0; QemuOptsList *list = qemu_find_opts("machine"); if (!QTAILQ_EMPTY(&list->head)) { @@ -1944,15 +1943,6 @@ static int configure_accelerator(void) *(accel_list[i].allowed) = 1; ret = accel_list[i].init(); if (ret < 0) { - init_failed = 1; - if (!accel_list[i].available()) { - printf("%s not supported for this target\n", - accel_list[i].name); - } else { - fprintf(stderr, "failed to initialize %s: %s\n", - accel_list[i].name, - strerror(-ret)); - } *(accel_list[i].allowed) = 0; } else { accel_initalised = 1; @@ -1970,10 +1960,6 @@ static int configure_accelerator(void) exit(1); } - if (init_failed) { - fprintf(stderr, "Back to %s accelerator.\n", accel_list[i].name); - } - return !accel_initalised; }