From: Ian Campbell Subject: CONFIG_SPARSE_IRQ breaks single VCPU domain 0 between xen/master and xen/next Date: Fri, 26 Feb 2010 11:42:13 +0000 Message-ID: <1267184533.11737.12277.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org With a single VCPU domain 0 (either due to hardware on dom0_max_vcpus=1) and CONFIG_SPARSE_IRQ on xen/next I see: Kernel panic - not syncing: No available IRQ to bind to: increase nr_irqs! (currently 256, started from 256) Pid: 0, comm: swapper Not tainted 2.6.32-x86_64-xen0 #5 Call Trace: [] panic+0xa0/0x17f [] ? xen_restore_fl_direct_end+0x0/0x1 [] ? kvasprintf+0x6e/0x90 [] find_unbound_irq+0x8a/0xb0 [] bind_virq_to_irq+0xa1/0x190 [] ? printk+0x67/0x6c [] ? xen_timer_interrupt+0x0/0x1a0 [] bind_virq_to_irqhandler+0x2d/0x80 [] xen_setup_timer+0x59/0x120 [] xen_time_init+0xa0/0xcf [] x86_late_time_init+0xa/0x11 [] start_kernel+0x31e/0x442 [] x86_64_start_reservations+0x99/0xb9 [] xen_start_kernel+0x6a4/0x76e it appears that nr_irqs == get_nr_irqs_gsi() in this configuration. Seems to impact 32(on64) and 64 bit kernels. xen/master (2.6.31.6) appears fine. I glanced through the diff between xen/master and xen/next and nothing leaps out. xen/next is missing e459de959 "Find an unbound irq number in reverse order (high to low)." but I don't see how that make a difference (and it doesn't). Ian.