From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: Re: Re: machine check report on HVM startup Date: Wed, 13 Aug 2008 15:17:09 +0200 Message-ID: <200808131517.09722.Christoph.Egger@amd.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_V7toI/5Vq3M5hIj" Return-path: In-Reply-To: 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: Keir Fraser List-Id: xen-devel@lists.xenproject.org --Boundary-00=_V7toI/5Vq3M5hIj Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 13 August 2008 14:48:04 Keir Fraser wrote: > On 13/8/08 13:40, "Christoph Egger" wrote: > >>>> This looks to me, there's a non-public event channel using the same > >>>> number as VIRQ_MCA which fires when launching memtest as HVM guest. > >>> > >>> I don't think this is the case. Sounds easy to repro this issue thoug= h. > >>> I'll give it a go. > >> > >> I can boot a memtest-3.4 ISO in an HVM guest on PAE hypervisor just > >> fine. > > > > Does your Dom0 kernel registrate the machine check event handler ? > > If not, then it things go fine. If yes, then you should see the flood of > > VIRQ_MCA events in the Dom0. > > How do I make it do that? Assuming you use Linux as Dom0, apply the attached patch to your local tree. With it, you should see a flood of "xen_mca: HW reported correctable error(= s)" Dom0 kernel messages. Note, the patch is not intended to go upstream. There will be something bet= ter in the future. Christoph =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 --Boundary-00=_V7toI/5Vq3M5hIj Content-Type: text/x-diff; charset="iso-8859-1"; name="linux_xenmca.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="linux_xenmca.diff" diff -r c110692c140f arch/i386/kernel/cpu/mcheck/non-fatal.c --- a/arch/i386/kernel/cpu/mcheck/non-fatal.c Wed Aug 13 10:00:09 2008 +0100 +++ b/arch/i386/kernel/cpu/mcheck/non-fatal.c Wed Aug 13 15:10:47 2008 +0200 @@ -60,9 +60,31 @@ static void mce_work_fn(void *data) schedule_delayed_work(&mce_work, MCE_RATE); } +/* Privileged receive callback and transmit kicker. */ +static irqreturn_t xenmca_event(int irq, void *dev_id, + struct pt_regs *regs) +{ + printk("xen_mca: HW reported correctable error(s)\n"); + + return IRQ_HANDLED; +} + +static int mca_event_irq; + static int __init init_nonfatal_mce_checker(void) { struct cpuinfo_x86 *c = &boot_cpu_data; + + if (is_initial_xendomain()) { + mca_event_irq = bind_virq_to_irqhandler( + VIRQ_MCA, + 0, + xenmca_event, + 0, + "mca0", + NULL); + BUG_ON(mca_event_irq < 0); + } /* Check for MCE support */ if (!cpu_has(c, X86_FEATURE_MCE)) --Boundary-00=_V7toI/5Vq3M5hIj Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_V7toI/5Vq3M5hIj--