From: Eduardo Habkost <ehabkost@redhat.com>
To: "Raj, Ashok" <ashok.raj@intel.com>
Cc: Borislav Petkov <bp@suse.de>,
kvm@vger.kernel.org, Tony Luck <tony.luck@intel.com>,
Gong Chen <gong.chen@intel.com>, Gleb Natapov <gleb@kernel.org>,
linux-kernel@vger.kernel.org, qemu-devel@nongnu.org,
Andi Kleen <andi.kleen@intel.com>,
Paolo Bonzini <pbonzini@redhat.com>,
libvir-list@redhat.com, Jiri Denemark <jdenemar@redhat.com>
Subject: Re: [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU
Date: Tue, 15 Dec 2015 13:42:55 -0200 [thread overview]
Message-ID: <20151215154255.GI3774@thinpad.lan.raisama.net> (raw)
In-Reply-To: <20151215001726.GA22215@otc-brkl-03.jf.intel.com>
On Mon, Dec 14, 2015 at 07:17:27PM -0500, Raj, Ashok wrote:
> On Mon, Dec 14, 2015 at 11:37:16PM +0100, Borislav Petkov wrote:
> > On Mon, Dec 14, 2015 at 02:11:46PM -0500, Raj, Ashok wrote:
> > > This is mostly harmless.. since the MCG_CAP space is shared and has no
> > > conflict between vendors. Also just the CAP being set has no effect.
> >
> > Of course it does - we check SER_P in machine_check_poll() and when
> > I emulate an AMD guest and inject errors into it, error handling is
> > obviously wrong, see:
> >
> > https://lkml.kernel.org/r/20151123150355.GE5134@pd.tnic
> >
>
> I can see how this hurts.. since the poller isn't doing cpu model specific
> stuff..?
>
> in the LMCE case, even if you advertise MCG_LMCE_P in MCG_CAP, the guest kernel
> wont call intel_init_lmce() only from mce_intel.c.. so the same problem
> won't happen.
>
> but the issue Eduardo mentioned seems like the following.
>
> New QEMU_LMCE + New KVM_LMCE + New_GUEST_LMCE - No problem
>
> but if you were to migrage the Guest_LMCE to a non-LMCE supported KVM host
> we could run into an issue..
>
> is this the compatibility issue that you were looking to fix Eduardo?
If I understood you correctly, yes. Also, note that currently
kvm_arch_init_vcpu() simply warns about missing capabilities,
instead of preventing the VM from running/migrating (as it
should). We need to change that, and figure out a good way to
report "feature FOO can't be enabled in this host" errors to
management software[1]. The main problem is that we don't even
have a QMP console available anymore if machine initialization is
aborted.
CCing libvir-list so they get in the loop.
[1] This is similar to what we need for CPUID checks, but the new
MCE feature means we need something more generic (that just
reports QOM property names, probably?)
--
Eduardo
next prev parent reply other threads:[~2015-12-15 15:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 19:41 [Patch V2 1/2] x86,mce: Basic support to add LMCE support to QEMU Ashok Raj
2015-12-10 19:41 ` [Patch V2 2/2] x86, mce: Need to translate GPA to HPA to inject error in guest Ashok Raj
2015-12-12 3:13 ` Chen, Gong
2015-12-14 16:23 ` [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU Eduardo Habkost
2015-12-14 16:37 ` Borislav Petkov
2015-12-14 19:11 ` Raj, Ashok
2015-12-14 18:32 ` Eduardo Habkost
2015-12-14 22:37 ` Borislav Petkov
2015-12-15 0:17 ` Raj, Ashok
2015-12-15 13:04 ` Borislav Petkov
2015-12-15 15:42 ` Eduardo Habkost [this message]
2015-12-14 19:05 ` Raj, Ashok
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=20151215154255.GI3774@thinpad.lan.raisama.net \
--to=ehabkost@redhat.com \
--cc=andi.kleen@intel.com \
--cc=ashok.raj@intel.com \
--cc=bp@suse.de \
--cc=gleb@kernel.org \
--cc=gong.chen@intel.com \
--cc=jdenemar@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=tony.luck@intel.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