* [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set
@ 2012-07-26 12:22 Markus Trippelsdorf
2012-08-01 3:19 ` Marcelo Tosatti
0 siblings, 1 reply; 3+ messages in thread
From: Markus Trippelsdorf @ 2012-07-26 12:22 UTC (permalink / raw)
To: kvm; +Cc: linux-kernel, Avi Kivity, Marcelo Tosatti
Every time I start qemu-kvm on my system the following line is added to
the syslog:
vcpu0 unhandled rdmsr: 0xc0010001
AFAICS all calls to vcpu_unimpl only contain debugging info with little
or no value for the end user.
Wouldn't something like the following patch make sense?
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index b70b48b..6bd816f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -321,7 +321,7 @@ struct kvm {
#define kvm_debug(fmt, ...) \
pr_debug("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
#define kvm_pr_unimpl(fmt, ...) \
- pr_err_ratelimited("kvm [%i]: " fmt, \
+ pr_debug_ratelimited("kvm [%i]: " fmt, \
task_tgid_nr(current), ## __VA_ARGS__)
/* The guest did something we don't support. */
--
Markus
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set
2012-07-26 12:22 [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set Markus Trippelsdorf
@ 2012-08-01 3:19 ` Marcelo Tosatti
2012-08-01 8:41 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Marcelo Tosatti @ 2012-08-01 3:19 UTC (permalink / raw)
To: Markus Trippelsdorf
Cc: kvm, linux-kernel, Avi Kivity, Gleb Natapov, Joerg Roedel,
Jan Kiszka
On Thu, Jul 26, 2012 at 02:22:48PM +0200, Markus Trippelsdorf wrote:
> Every time I start qemu-kvm on my system the following line is added to
> the syslog:
>
> vcpu0 unhandled rdmsr: 0xc0010001
>
> AFAICS all calls to vcpu_unimpl only contain debugging info with little
> or no value for the end user.
>
> Wouldn't something like the following patch make sense?
>
> Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
It could be useful for debugging (but then lots of other things could).
Anyone has a use for this?
> diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
> index b70b48b..6bd816f 100644
> --- a/include/linux/kvm_host.h
> +++ b/include/linux/kvm_host.h
> @@ -321,7 +321,7 @@ struct kvm {
> #define kvm_debug(fmt, ...) \
> pr_debug("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
> #define kvm_pr_unimpl(fmt, ...) \
> - pr_err_ratelimited("kvm [%i]: " fmt, \
> + pr_debug_ratelimited("kvm [%i]: " fmt, \
> task_tgid_nr(current), ## __VA_ARGS__)
>
> /* The guest did something we don't support. */
>
> --
> Markus
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set
2012-08-01 3:19 ` Marcelo Tosatti
@ 2012-08-01 8:41 ` Avi Kivity
0 siblings, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2012-08-01 8:41 UTC (permalink / raw)
To: Marcelo Tosatti
Cc: Markus Trippelsdorf, kvm, linux-kernel, Gleb Natapov,
Joerg Roedel, Jan Kiszka
On 08/01/2012 06:19 AM, Marcelo Tosatti wrote:
> On Thu, Jul 26, 2012 at 02:22:48PM +0200, Markus Trippelsdorf wrote:
>> Every time I start qemu-kvm on my system the following line is added to
>> the syslog:
>>
>> vcpu0 unhandled rdmsr: 0xc0010001
>>
>> AFAICS all calls to vcpu_unimpl only contain debugging info with little
>> or no value for the end user.
>>
>> Wouldn't something like the following patch make sense?
>>
>> Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
>
> It could be useful for debugging (but then lots of other things could).
>
> Anyone has a use for this?
The current scenario is:
<guest breaks>
Maintainer asks for dmesg
If something shows up, it's something to consider
Following this patch, the scenario will be
<guest breaks>
Maintainer: please enable dynamic debug for kvm and reproduce
If something shows up, it's something to consider
I guess with dynamic debug it's acceptable, we just need to make sure
that it doesn't spew tons of other stuff.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-01 8:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 12:22 [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set Markus Trippelsdorf
2012-08-01 3:19 ` Marcelo Tosatti
2012-08-01 8:41 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).