All of lore.kernel.org
 help / color / mirror / Atom feed
From: Egger Christoph <chegger@amazon.de>
To: Jan Beulich <JBeulich@suse.com>
Cc: Jinsong Liu <jinsong.liu@intel.com>,
	Yongjie Ren <yongjie.ren@intel.com>,
	Keir Fraser <keir.xen@gmail.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] x86: fix CMCI injection
Date: Mon, 25 Mar 2013 16:03:41 +0100	[thread overview]
Message-ID: <5150674D.4090902@amazon.de> (raw)
In-Reply-To: <51506D8E02000078000C825B@nat28.tlf.novell.com>

On 25.03.13 15:30, Jan Beulich wrote:
>>>> On 25.03.13 at 14:41, Egger Christoph <chegger@amazon.de> wrote:
>> On 26.02.13 07:04, Keir Fraser wrote:
>>> On 25/02/2013 16:49, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> --- a/xen/arch/x86/cpu/mcheck/mce.c
>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.c
>>>> @@ -34,6 +34,7 @@ bool_t __read_mostly mce_broadcast = 0;
>>>>    bool_t is_mc_panic;
>>>>    unsigned int __read_mostly nr_mce_banks;
>>>>    unsigned int __read_mostly firstbank;
>>>> +uint8_t __read_mostly cmci_apic_vector;
>> ...
>>>> @@ -1479,11 +1474,15 @@ long do_mca(XEN_GUEST_HANDLE_PARAM(xen_m
>>>>                on_selected_cpus(cpumap, x86_mc_mceinject, NULL, 1);
>>>>                break;
>>>>            case XEN_MC_INJECT_TYPE_CMCI:
>>>> -            if ( !cmci_support )
>>>> +            if ( !cmci_apic_vector )
>>
>> cmci_apic_vector is uninitialized here when the platform does not
>> support CMCI.
>
> How that? It's zero in that case (just like any other global variable
> without explicit initializer), which is exactly what the conditional
> tests for.

umm... right. Sorry for the noise.

Christoph

      reply	other threads:[~2013-03-25 15:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 16:49 [PATCH] x86: fix CMCI injection Jan Beulich
2013-02-26  5:35 ` Ren, Yongjie
2013-02-26  6:04 ` Keir Fraser
2013-03-25 13:41   ` Egger Christoph
2013-03-25 14:30     ` Jan Beulich
2013-03-25 15:03       ` Egger Christoph [this message]

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=5150674D.4090902@amazon.de \
    --to=chegger@amazon.de \
    --cc=JBeulich@suse.com \
    --cc=jinsong.liu@intel.com \
    --cc=keir.xen@gmail.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yongjie.ren@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.