From: Keir Fraser Subject: Re: machine check report on HVM startup Date: Wed, 13 Aug 2008 13:27:15 +0100 Message-ID: References: <200808131348.05596.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200808131348.05596.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/8/08 12:48, "Christoph Egger" wrote: > When I launch memtest as HVM guest, then Xen sends tons of VIRQ_MCA events > to the Dom0, although there occured NO correctable machine check errors. > When the Dom0 tries to fetch the error telemetry, then the > > BUG_ON(mc_data.fetch_idx > mc_data.error_idx); in x86_mcinfo_getfetchptr() > in xen/arch/x86/cpu/mcheck/mce.c is hit. (x86_mcinfo_getfetchptr() only works > if actually real error occured which is not the case.) Perhaps you should be more wary of hypercall inputs? Failing the hypercall, perhaps with a warning printk, would be better than BUG_ON() I think. > 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 though. I'll give it a go. -- Keir