From: Michael Tokarev <mjt@tls.msk.ru>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Remove debugging messages.
Date: Tue, 19 Jul 2011 23:49:22 +0400 [thread overview]
Message-ID: <4E25DFC2.6030900@msgid.tls.msk.ru> (raw)
In-Reply-To: <1311103418-29380-2-git-send-email-rjones@redhat.com>
19.07.2011 23:23, Richard W.M. Jones wrote:
> From: "Richard W.M. Jones" <rjones@redhat.com>
>
> 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 <rjones@redhat.com>
> ---
> 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... :(
Thanks,
/mjt
next prev parent reply other threads:[~2011-07-19 19:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 19:23 [Qemu-devel] [PATCH 1/1] Remove debugging messages Richard W.M. Jones
2011-07-19 19:23 ` [Qemu-devel] [PATCH] " Richard W.M. Jones
2011-07-19 19:47 ` Jan Kiszka
2011-07-19 19:49 ` Michael Tokarev [this message]
2011-07-19 20:50 ` Richard W.M. Jones
2011-07-19 20:04 ` Anthony Liguori
2011-07-19 20:59 ` Richard W.M. Jones
2011-07-19 21:56 ` Anthony Liguori
2011-07-20 8:50 ` Richard W.M. Jones
2011-07-20 12:51 ` Anthony Liguori
2011-07-20 17:38 ` Richard W.M. Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E25DFC2.6030900@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.