From: Keir Fraser Subject: Re: xen 4 only seeing one keyboard and mouse Date: Fri, 27 Aug 2010 08:34:44 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: M A Young , Konrad Rzeszutek Wilk Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 26/08/2010 23:24, "M A Young" wrote: > or perhaps it should happen in io_apic_set_pci_routing from > xen/arch/x86/io_apic.c where the higher IRQs are set (it doesn't because > __assign_irq_vector sees the IRQ is already in use > old_vector = irq_to_vector(irq); > if (old_vector) { > cpus_and(tmp_mask, mask, cpu_online_map); > cpus_and(tmp_mask, cfg->domain, tmp_mask); > if (!cpus_empty(tmp_mask)) { > cfg->vector = old_vector; > return 0; > } > } > but seems to miss the fact that it is only actually configured for one > cpu. Setting up for one CPU only was the whole point of the per-cpu IDT patch. It allows the same vector on different CPUs to be bound to different interrupts, hence increasing the system-wide interrupt limit by a factor equal to number of CPUs in the system. As long as the interrupt controller is programmed to only interrupt the CPU which has the vector allocated, all is good. -- Keir