From: "Christoph Egger" Subject: [PATCH] 0/3: MCA/MCE correctable error handling Date: Tue, 21 Aug 2007 15:31:17 +0200 Message-ID: <200708211531.17957.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Gavin.Maltby@sun.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org Hi Keir, This is a full patchset you requested last week :-) This patchset is for handling of correctable errors only. The other part=20 related to the uncorrectable errors will be another patchset. All patches apply against changeset 15772 (staging tree) in the given order. Patch 1/3: MSR_CAP never reports a negative count of available=20 error-reporting banks. Thus make nr_mce_banks unsigned. While there, do some other minor indentation cleanups. Patch 2/3: Extend arch_shared_info with machine check structure. This will be used to transfer machine check information to the guest via a shared page. The guest will be notified via an event on correctable errors and via NMI on uncorrectable errors. Former is patch 3/3, latter one will be another patchset. The structure is designed to be as small and as highly flexible as possible at the same time. Patch 3/3: This introduces an architecture dependent VIRQ_MCA and extends the polling service routine to notify the Dom0 via an event. The polling frequency is initially every 15 seconds. The=20 frequency adjusts automatically at runtime. No error means, lower frequency, correctable error means, increase frequency. It also uses hw threshold=20 register (MSR_K8_MC4_MISC) to detect correctable errors between two polls. If the Dom0 ignores the notification (=3D Dom0 has no handler for VIRQ_MCA= =20 registered), then Xen dumps the machine check information in a format, mcelog can parse. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy