From: Christoph Egger Subject: Re: [PATCH] x86: fix MCE/NMI injection Date: Tue, 1 Dec 2009 11:39:25 +0100 Message-ID: <200912011139.25978.Christoph.Egger@amd.com> References: <4B14F1CA0200007800022CC6@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B14F1CA0200007800022CC6@vpn.id2.novell.com> 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: Yunhong Jiang , Jan Beulich , Liping Ke List-Id: xen-devel@lists.xenproject.org On Tuesday 01 December 2009 10:36:58 Jan Beulich wrote: > This attempts to address all the concerns raised in > http://lists.xensource.com/archives/html/xen-devel/2009-11/msg01195.html, > but I'm nevertheless still not convinced that all aspects of the > injection handling really work reliably. In particular, while the > patch here on top of the fixes for the problems menioned in the > referenced mail also adds code to keep send_guest_trap() from > injecting multiple events at a time, I don't think the is the right > mechanism - it should be possible to handle NMI/MCE nested within > each other. > > Another fix on top of the ones for the earlier described problems is > that the vCPU affinity restore logic didn't account for software > injected NMIs - these never set cpu_affinity_tmp, but due to it most > likely being different from cpu_affinity it would have got restored > (to a potentially random value) nevertheless. > > Signed-off-by: Jan Beulich The patch looks good. Just a minor nit: your cmpxchgptr() implementation looks very complicated and unreadable. Christoph -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632