From: "Jan Beulich" Subject: Re: Re: 4.0/4.1 requests - IO-APIC EOI v4 [RFC] Date: Mon, 12 Sep 2011 11:23:07 +0100 Message-ID: <4E6DF9AB0200007800055B2F@nat28.tlf.novell.com> References: <4E689D9A.1020405@citrix.com> <4E68C6C10200007800055485@nat28.tlf.novell.com> <4E68C09B.8050409@citrix.com> <4E68E1D30200007800055501@nat28.tlf.novell.com> <4E68C9A9.8090707@citrix.com> <4E6A2B7F.6060006@citrix.com> <4E6A4F66020000780005589B@nat28.tlf.novell.com> <4E6A36EB.6000802@citrix.com> <4E6A54DB02000078000558B6@nat28.tlf.novell.com> <4E6A3D5B.5010104@citrix.com> <4E6A430B.30308@citrix.com> <4E6DC7D80200007800055AB1@nat28.tlf.novell.com> <4E6DDBAE.6060104@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4E6DDBAE.6060104@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: Keir Fraser , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 12.09.11 at 12:15, Andrew Cooper wrote: > On 12/09/11 07:50, Jan Beulich wrote: >>>>> On 09.09.11 at 18:47, Andrew Cooper = wrote: >>> + * Xen code doesn't actually prevent multiple = IO-APIC >>> + * entries being assigned the same vector, so EOI = all >>> + * pins which have the correct vector. >>> + * >>> + * Remove the following code when the above = assertion >>> + * is fulfilled. */ >>> + >> Why don't you just call __io_apic_eoi() recursively here? >> >> Jan >=20 > If I call the function recursively, it will loop forever. Anyway, the Why would it loop forever? You get in here only with pin =3D=3D -1, and for the recursive call you'd pass the pin number you determined. > need to clear multiple pins is only temorary until George finishes his > per-device AMD interrupt remap patch which will enforce vector > uniqueness in each IO-APIC. My expectation is that this issue will be > fixed in the next few weeks. Sure. Jan