From: Huang Ying <ying.huang@intel.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>, kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] KVM: x86: Remove user space triggerable MCE error message
Date: Mon, 17 Jan 2011 15:31:11 +0800 [thread overview]
Message-ID: <1295249471.10748.91.camel@yhuang-dev> (raw)
In-Reply-To: <4D33EBBD.6040801@web.de>
On Mon, 2011-01-17 at 15:11 +0800, Jan Kiszka wrote:
> On 2011-01-17 01:54, Huang Ying wrote:
> > On Sat, 2011-01-15 at 17:00 +0800, Jan Kiszka wrote:
> >> From: Jan Kiszka <jan.kiszka@siemens.com>
> >>
> >> 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.
>
> With user space I meant qemu, and maybe "error" was the wrong term. This
> code path is only triggered if qemu decides to.
Not only decided by qemu, but also decided by guest OS. If guest OS
does not clear the MSR or guest OS does not set the X86_CR4_MCE bit in
the cr4, the triple fault will be triggered.
> And there you may also
> print this event (and you already do).
Sorry, which print do you mean? I can not find similar print in user
space.
> Another reason to not rely on catching this case here: KVM_X86_SET_MCE
> is obsolete on current kernels. Qemu will use a combination of
> KVM_SET_MSRS and KVM_SET_VCPU_EVENTS in the future, only falling back to
> this interface on pre-vcpu-events kernels. Then you need to debug this
> in user space anyway as the triple fault will no longer make it to the
> kernel.
OK. Then, I think it will be helpful for debugging if we can print
something like this in user space implementation.
Best Regards,
Huang Ying
next prev parent reply other threads:[~2011-01-17 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-15 9:00 [PATCH] KVM: x86: Remove user space triggerable MCE error message Jan Kiszka
2011-01-17 0:54 ` Huang Ying
2011-01-17 7:11 ` Jan Kiszka
2011-01-17 7:31 ` Huang Ying [this message]
2011-01-17 8:01 ` Jan Kiszka
2011-01-20 16:04 ` Marcelo Tosatti
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=1295249471.10748.91.camel@yhuang-dev \
--to=ying.huang@intel.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox