From: "Jan Beulich" Subject: Re: Xen on machines with non-contiguous io-apics Date: Mon, 17 Aug 2009 10:44:45 +0100 Message-ID: <4A8942AD02000078000100DC@vpn.id2.novell.com> References: <20090817091728.GA26646@weybridge.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090817091728.GA26646@weybridge.uk.xensource.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: Steven Smith , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Steven Smith 17.08.09 11:17 >>> >I have a test box with two IOAPICS which present non-contiguous GSIs >according to the ACPI tables (the first offers 0-24 and the second >32-56). The latest xen-unstable with current pvops dom0 fails to boot >on this machine, because the dom0 kernel can't claim any GSIs above >48. This is because the PHYSDEVOP_alloc_irq_vector implementation >won't let it get at anything above nr_irqs, which is just the sum of >the number of registers across all APICs. > >The patch below fixes this by just setting nr_irqs to the highest GSI >offered by any IOAPIC. I don't understand this stuff well enough to >say whether that's the right fix (and the patch isn't suitable for >applying, anyway), but it does make the machine boot. This seems to mostly be in line with upstream Linux, except that it's = lacking the fallback for when ACPI is disabled. See acpi_probe_gsi() and its use in 2.6.31-rcX. Jan