Skip to content

Commit 526e5ab

Browse files
committed
lguest: fix irq vectors.
do_IRQ: cannot handle IRQ -1 vector 0x20 cpu 0 ------------[ cut here ]------------ kernel BUG at arch/x86/kernel/irq_32.c:219! We're not ISA: we have a 1:1 mapping from vectors to irqs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent ad5173f commit 526e5ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/x86/lguest/boot.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ static void __init lguest_init_IRQ(void)
586586

587587
for (i = 0; i < LGUEST_IRQS; i++) {
588588
int vector = FIRST_EXTERNAL_VECTOR + i;
589+
/* Some systems map "vectors" to interrupts weirdly. Lguest has
590+
* a straightforward 1 to 1 mapping, so force that here. */
591+
__get_cpu_var(vector_irq)[vector] = i;
589592
if (vector != SYSCALL_VECTOR) {
590593
set_intr_gate(vector, interrupt[vector]);
591594
set_irq_chip_and_handler_name(i, &lguest_irq_controller,

0 commit comments

Comments
 (0)