From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Jan Beulich <JBeulich@suse.com>,
Haozhong Zhang <haozhong.zhang@intel.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Christoph Egger <chegger@amazon.de>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] x86/MCE: sanitize domain/vcpu ID handling
Date: Thu, 23 Feb 2017 08:28:26 -0500 [thread overview]
Message-ID: <fae8d99e-576d-6815-6f73-e2ec3ff81f06@oracle.com> (raw)
In-Reply-To: <58AEC210020000780013D248@prv-mh.provo.novell.com>
On 02/23/2017 05:05 AM, Jan Beulich wrote:
>>>> On 23.02.17 at 11:01, <haozhong.zhang@intel.com> wrote:
>> On 02/23/17 02:28 -0700, Jan Beulich wrote:
>>> --- a/xen/arch/x86/cpu/mcheck/mcaction.c
>>> +++ b/xen/arch/x86/cpu/mcheck/mcaction.c
>>> @@ -100,7 +100,8 @@ mc_memerr_dhandler(struct mca_binfo *bin
>>> goto vmce_failed;
>>> }
>>>
>>> - if ( boot_cpu_data.x86_vendor == X86_VENDOR_INTEL )
>>> + if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL ||
>>> + global->mc_vcpuid == XEN_MC_VCPUID_INVALID)
>>> vmce_vcpuid = VMCE_INJECT_BROADCAST;
>>> else
>>> vmce_vcpuid = global->mc_vcpuid;
>> If an invalid vcpuid is got on AMD machine, should we report error
>> or inject to a default vcpu (vcpu0?) ?
> Well, broadcasting in that case seems the best option to me,
> but let's add AMD maintainers to Cc.
Yes, I think we should broadcast if we don't know VCPU identity.
OTOH, is mc_memerr_dhandler() even called on AMD? The only caller I see
is intel_memerr_dhandler().
-boris
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-02-23 13:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 9:28 [PATCH] x86/MCE: sanitize domain/vcpu ID handling Jan Beulich
2017-02-23 10:01 ` Haozhong Zhang
2017-02-23 10:05 ` Jan Beulich
2017-02-23 13:28 ` Boris Ostrovsky [this message]
2017-02-23 12:02 ` Andrew Cooper
2017-02-23 12:21 ` Jan Beulich
2017-02-23 12:29 ` Andrew Cooper
2017-03-01 9:14 ` Ping: " Jan Beulich
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=fae8d99e-576d-6815-6f73-e2ec3ff81f06@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=chegger@amazon.de \
--cc=haozhong.zhang@intel.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=xen-devel@lists.xenproject.org \
/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;
as well as URLs for NNTP newsgroup(s).