From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Ke, Liping" <liping.ke@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [patch 0/3]Enable CMCI (Corrected Machine Check Error Interrupt) for Intel CPUs
Date: Tue, 23 Dec 2008 09:00:25 +0000 [thread overview]
Message-ID: <C5765929.2085E%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <C5765472.20852%keir.fraser@eu.citrix.com>
On 23/12/2008 08:40, "Keir Fraser" <keir.fraser@eu.citrix.com> wrote:
>> As for moving *cmci_owner_set* out of stopmachine_run is basically ok for us.
>> Just one thing:
>> CMCI might happen and lost during the very small window (old owner is cleared
>> while new owner is not set). In order to make sure that CMCI could be
>> triggered an on the new owner, we need to clear MSR Bank(i) status register
>> [Corrected Error Counter] field ( We normally do this @ CMCI interrupt
>> handler, according to spec, if the counter is not cleared, CMCI will not be
>> triggered any more).
>> I made a small patch for it in the attachment. How do you think?
>
> I don't know very much about CMCI. If you think this is required I will
> certainly check it in.
Actually I think this is a good idea, even if we'd stayed with your original
CMCI patches. I will apply it.
One thing -- if you want to reduce the window between release of a band by
its old owner and acquisition by a new owner, we could do the whole lot
before stop_machine_run()? Maybe cmci_cpu_down(cpu) which would IPI 'cpu' to
clear its CMCI state and then IPI all other CPUs to pick up the released
banks. This would be neatly hooked off CPU_DOWN_PREPARE or similar in Linux,
but Xen doesn't have cpu notifiers. :-) You'd have to call cmci_cpu_down()
explicitly in cpu_down(). Or perhaps we should have cpu notifier chains in
Xen too...
If we do the above I don't think we need to re-introduce your rollback
logic. If you think about it, there's no reason to prefer the old owner over
the new owner, so no reason to roll back. I believe?
-- Keir
next prev parent reply other threads:[~2008-12-23 9:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 3:54 [patch 0/3]Enable CMCI (Corrected Machine Check Error Interrupt) for Intel CPUs Ke, Liping
2008-12-22 12:06 ` Keir Fraser
2008-12-23 5:17 ` Ke, Liping
2008-12-23 8:40 ` Keir Fraser
2008-12-23 9:00 ` Keir Fraser [this message]
2008-12-23 12:32 ` Ke, Liping
2008-12-24 2:57 ` Jiang, Yunhong
2008-12-24 8:01 ` Keir Fraser
2008-12-24 8:46 ` Jiang, Yunhong
2008-12-24 8:54 ` Keir Fraser
2008-12-24 14:51 ` Jiang, Yunhong
2008-12-24 14:55 ` Keir Fraser
2008-12-24 15:08 ` Jiang, Yunhong
2008-12-24 15:38 ` Keir Fraser
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=C5765929.2085E%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=liping.ke@intel.com \
--cc=xen-devel@lists.xensource.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.