From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH v2] x86/irq: Print direct vector mappings in the 'i' debug key Date: Mon, 28 Oct 2013 10:28:59 +0000 Message-ID: <1382956139-5739-1-git-send-email-andrew.cooper3@citrix.com> References: <526E3834.9060604@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <526E3834.9060604@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org Also adjust the initial print message, as the IRQ loop has contained non-guest interrutps for a while now. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich --- Changes since v1: * Correct print_function -> print_symbol --- xen/arch/x86/irq.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index 53fe9e3..89c46d3 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -2228,7 +2228,7 @@ static void dump_irqs(unsigned char key) unsigned long flags; char *ssid; - printk("Guest interrupt information:\n"); + printk("IRQ information:\n"); for ( irq = 0; irq < nr_irqs; irq++ ) { @@ -2285,6 +2285,14 @@ static void dump_irqs(unsigned char key) xfree(ssid); } + printk("Direct vector information:\n"); + for ( i = 0; i < NR_VECTORS; ++i ) + if ( direct_apic_vector[i] ) + { + printk(" %#04x -> ", i); + print_symbol("%s\n", (unsigned long)direct_apic_vector[i]); + } + dump_ioapic_irq_info(); } -- 1.7.10.4