From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: Haozhong Zhang <haozhong.zhang@intel.com>,
Christoph Egger <chegger@amazon.de>
Subject: Re: [PATCH] x86/MCE: sanitize domain/vcpu ID handling
Date: Thu, 23 Feb 2017 12:02:14 +0000 [thread overview]
Message-ID: <616b64b8-81cc-6870-13f5-464f6b6af5be@citrix.com> (raw)
In-Reply-To: <58AEB956020000780013D199@prv-mh.provo.novell.com>
On 23/02/17 09:28, Jan Beulich wrote:
> Storing -1 into both fields was misleading consumers: We really should
> have a manifest constant for "invalid vCPU" here, and the already
> existing DOMID_INVALID should be used.
>
> Also correct a bogus (dead code) check in mca_init_global(), at once
> introducing a manifest constant for the early boot "invalid vCPU"
> pointer (avoiding proliferation of the open coding). Make that pointer
> a non-canonical address at once.
>
> Finally, don't leave mc_domid uninitialized in mca_init_bank().
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, however...
> ---
> TBD: Do we need to change XEN_MCA_INTERFACE_VERSION due to the 0xffff
> -> DOMID_INVALID change for what mc_domid defaults to?
>
> --- 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)
Isn't this a backwards step, style-wise? This file, using 4 spaces, is
Xen style rather than Linux style.
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-02-23 12:03 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
2017-02-23 12:02 ` Andrew Cooper [this message]
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=616b64b8-81cc-6870-13f5-464f6b6af5be@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=chegger@amazon.de \
--cc=haozhong.zhang@intel.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).