]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/jailhouse: Wire up IOAPIC for legacy UART ports
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Nov 2017 08:11:53 +0000 (09:11 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 14 Jan 2018 20:11:57 +0000 (21:11 +0100)
commitcf878e169d37b596de41322291523951540984c1
tree7186ab7f8a2d38101ccad769e6e0850e4db2a807
parentfd498076821739db38babe72602f7c227587cbb5
x86/jailhouse: Wire up IOAPIC for legacy UART ports

The typical I/O interrupts in non-root cells are MSI-based. However, the
platform UARTs do not support MSI. In order to run a non-root cell that
shall use one of them, the standard IOAPIC must be registered and 1:1
routing for IRQ 3 and 4 set up.

If an IOAPIC is not available, the boot loader clears standard_ioapic in
the setup data, so registration is skipped. If the guest is not allowed to
to use one of those pins, Jailhouse will simply ignore the access.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: jailhouse-dev@googlegroups.com
Link: https://lkml.kernel.org/r/90d942dda9d48a8046e00bb3c1bb6757c83227be.1511770314.git.jan.kiszka@siemens.com
arch/x86/kernel/jailhouse.c