From: Huang Ying Subject: Re: [PATCH] KVM: x86: Remove user space triggerable MCE error message Date: Mon, 17 Jan 2011 08:54:30 +0800 Message-ID: <1295225670.10748.10.camel@yhuang-dev> References: <4D316245.9070304@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , kvm To: Jan Kiszka Return-path: Received: from mga09.intel.com ([134.134.136.24]:28370 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709Ab1AQAyc (ORCPT ); Sun, 16 Jan 2011 19:54:32 -0500 In-Reply-To: <4D316245.9070304@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Sat, 2011-01-15 at 17:00 +0800, Jan Kiszka wrote: > From: Jan Kiszka > > This case is a pure user space error we do not need to record. Moreover, > it can be misused to flood the kernel log. Remove it. I don't think this is a pure user space error. This happens on real hardware too, if the Machine Check exception is raised during early boot stage or the second MC exception is raised before the first MC exception is processed/cleared. So I use printk here to help debugging these issues. To avoid flooding the kernel log, we can use ratelimit. Best Regards, Huang Ying > Signed-off-by: Jan Kiszka > --- > arch/x86/kvm/x86.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 9dda70d..7f7e4a5 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -2575,9 +2575,6 @@ static int kvm_vcpu_ioctl_x86_set_mce(struct kvm_vcpu *vcpu, > if (mce->status & MCI_STATUS_UC) { > if ((vcpu->arch.mcg_status & MCG_STATUS_MCIP) || > !kvm_read_cr4_bits(vcpu, X86_CR4_MCE)) { > - printk(KERN_DEBUG "kvm: set_mce: " > - "injects mce exception while " > - "previous one is in progress!\n"); > kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu); > return 0; > }