From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Jan Beulich <jbeulich@novell.com>
Subject: Re: RFC: MCA/MCE concept
Date: Wed, 30 May 2007 09:45:50 +0200 [thread overview]
Message-ID: <200705300945.51163.Christoph.Egger@amd.com> (raw)
In-Reply-To: <465D4190.76E4.0078.0@novell.com>
On Wednesday 30 May 2007 09:19:12 Jan Beulich wrote:
> >case I) - Xen reveives a MCE from the CPU
> >
> >1) Xen MCE handler figures out if error is an correctable error (CE)
> > or uncorrectable error (UE)
> >2a) error == CE:
> > Xen notifies Dom0 if Dom0 installed an MCA event handler
> > for statistical purpose
> >2b) error == UE and UE impacts Xen or Dom0:
>
> A very important aspect here is how you want to classify what impact an
> uncorrectable has - generally, I can see very few situations where you
> could confine the impact to a sub-portion of the system (i.e. a single
> domU, dom0, or Xen). The general rule in my opinion must be to halt the
> system, the question just is how likely it is that you can get a meaningful
> message out (to screen, serial, or logs) that can help analyze the problem
> afterwards. If it is somewhat likely, then dom0 should be involved,
> otherwise Xen should just shut down the system.
Here you can best help out using HW features to handle errors.
AMD CPUs features online-spare RAM and Chipkill since K8 RevF.
CPUs such as the Sparc features Data Poisoning. That would be the
most handy technique that can be used here.
Maybe this line:
> > Xen does some self-healing
should be this:
Xen *tries* to do some self-healing
> > and notifies Dom0 on success if Dom0 installed MCA event handler
> > or Xen panics on failure
The first implemenation can just panic here. The self-healing will be
implemented and improved over time.
> >2c) error == UE and UE impacts DomU:
> > In case of Dom0 installed MCA event handler:
> > Xen notifies Dom0 and Dom0 tells Xen whether
> > to also notify DomU and/or does some operations
> > on the DomU (case II)
> > In case Dom0 did not install MCA event handler,
> > Xen notifies DomU
> >3a) DomU is a PV guest:
> > if DomU installed MCA event handler, it gets notified to perform
> > self-healing
> > if DomU did not install MCA event handler, notify Dom0 to do
> > some operations on DomU (case II)
> > if neither DomU nor Dom0 did not install MCA event handlers,
> > then Xen kills DomU
> >3b) DomU is a HVM guest:
> > if DomU features a PV driver then behave as in 3a)
>
> What significance do pv drivers have here? Or do you mean a pv MCA
> driver?
Yes, I mean the pv MCA driver.
>
> > if DomU enabled MCA/MCE via MSR, inject MCE into guest
> > if DomU did not enable MCA/MCE via MSR, notify Dom0
> > to do some operations on DomU (case II)
> > if neither DomU enabled MCA/MCE nor Dom0 did not install
> > MCA event handler, Xen kills DomU
>
> Injecting an MCE to a hvm guest seems at least questionable. It can't
> really do anything about it (it doesn't even know the real topology of the
> system it's running on, so addresses stored in MSRs are meaningless -
> either you allow them to be read untranslated [in which case the guest
> cannot make sense of them] or you do translation for the guest [in which
> case it might make assumptions about co-locality of other nearby pages
> which will be wrong]).
Yes, Xen should do the translation for the guest. The assumptions must
be fixed then. I know that's easier said than done.
> Doing this to a pv domU for purely notification purposes (where the guest
> knows it's running virtualized) is clearly a different matter.
Yes, I agree with you here. The general idea behind informing a DomU
is to let its own fault management handle the error. It is always better to
let it kill a screen saver process and keep the word processor running than
killing the whole guest. The DomU should crash itself if it thinks that's the
best.
> >case II) - Xen reveives Dom0 instructions via Hypercall
> >
> >There are different reasons, why Xen should do something.
> >
> > - Dom0 got enough CEs so that UEs are very likely to happen in order
> > to "circumvent" UEs.
> > - Possible operations on a DomU
> > - save/restore DomU
> > - (live-)migrate DomU to a different physical machine
> > - etc.
>
> Very heavy-weight operations, which I think are unlikely to succeed if
> you already suspect the system's going to suffer a UE soon.
Yes, they are heavy-weight operations. Do you have some ideas, what
a Dom0 can do?
The idea here is that the Dom0's fault management helps guests to
survive as best as possible.
Christoph
--
AMD Saxony, Dresden Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2007-05-30 7:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 15:32 RFC: MCA/MCE concept Christoph Egger
2007-05-30 7:19 ` Jan Beulich
2007-05-30 7:45 ` Christoph Egger [this message]
2007-05-30 8:49 ` Jan Beulich
2007-05-30 9:10 ` Christoph Egger
2007-05-30 9:59 ` Jan Beulich
2007-05-30 10:12 ` Christoph Egger
2007-05-30 13:50 ` Gavin Maltby
2007-05-30 15:03 ` Petersson, Mats
2007-06-01 8:11 ` Christoph Egger
2007-06-01 8:55 ` Petersson, Mats
2007-06-01 9:28 ` Christoph Egger
2007-06-01 9:48 ` Petersson, Mats
2007-06-01 10:57 ` Gavin Maltby
2007-06-01 11:38 ` Petersson, Mats
2007-06-04 16:16 ` Gavin Maltby
2007-06-06 9:28 ` Christoph Egger
2007-06-06 10:35 ` Gavin Maltby
2007-06-06 11:57 ` Christoph Egger
2007-06-06 12:25 ` Gavin Maltby
2007-06-06 13:24 ` Christoph Egger
2007-06-14 11:59 ` Gavin Maltby
2007-06-21 9:29 ` Christoph Egger
2007-06-21 10:15 ` Petersson, Mats
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=200705300945.51163.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=jbeulich@novell.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.