From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Trippelsdorf Subject: [RFC PATCH] KVM: Only print vcpu_unimpl when DEBUG is set Date: Thu, 26 Jul 2012 14:22:48 +0200 Message-ID: <20120726122248.GA252@x4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, Avi Kivity , Marcelo Tosatti To: kvm@vger.kernel.org Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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 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