From: "Jan Beulich" Subject: Re: [PATCH] x86/IO-APIC: refine EOI-ing of migrating level interrupts Date: Fri, 18 Nov 2011 08:31:37 +0000 Message-ID: <4EC625F90200007800061BFE@nat28.tlf.novell.com> References: <4EC273B40200007800061145@nat28.tlf.novell.com> <4EC53288.5010400@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4EC53288.5010400@citrix.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: Andrew Cooper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 17.11.11 at 17:12, Andrew Cooper wrote: > On 15/11/11 13:14, Jan Beulich wrote: >> Rather than going through all IO-APICs and calling io_apic_eoi_vector() >> for the vector in question, just use eoi_IO_APIC_irq(). >> >> This in turn allows to eliminate quite a bit of other code. >> >> Signed-off-by: Jan Beulich >=20 > Tested-and-acked-by: Andrew Cooper (tested > via backport to xen-4.1.x) Now that this is in, could you try (again on the offending system) whether adding e.g. a WARN_ON(vector !=3D desc->arch.old_vector) prior to the just added call to eoi_IO_APIC_irq() (but inside the surrounding if()) would ever trigger (obviously you'd want to make sure that the code path actually gets executed at all - perhaps counting and printing the count once in a while would be the easiest thing to do)? If it does, we obviously need to stay with passing in vector. If not, we'd need to do another round of code inspection to determine whether indeed there's no race when relying on just the stored data. Thanks, Jan