Received: from eggs.gnu.org ([140.186.70.92]:54690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjHFO-0004wg-QL for qemu-devel@nongnu.org; Tue, 19 Jul 2011 16:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjHFM-0007f2-MS for qemu-devel@nongnu.org; Tue, 19 Jul 2011 16:50:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjHFM-0007et-2J for qemu-devel@nongnu.org; Tue, 19 Jul 2011 16:50:28 -0400 Date: Tue, 19 Jul 2011 21:50:16 +0100 From: "Richard W.M. Jones" Message-ID: <20110719205016.GA21852@amd.home.annexia.org> References: <1311103418-29380-1-git-send-email-rjones@redhat.com> <1311103418-29380-2-git-send-email-rjones@redhat.com> <4E25DFC2.6030900@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E25DFC2.6030900@msgid.tls.msk.ru> Subject: Re: [Qemu-devel] [PATCH] Remove debugging messages. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Tue, Jul 19, 2011 at 11:49:22PM +0400, Michael Tokarev wrote: > 19.07.2011 23:23, Richard W.M. Jones wrote: > > 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"); > > Don't do this. qemu error reporting sucks badly already, > and this very error message gives us at least some details > (the %m part) about what's missing. There's no other place > where this information is printed in case this open fails. > We already have to resort to strace in way too many places... :( This is an argument for having some sort of global --debug option. Silent by default, but debug messages are a mere runtime flag away. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v