console: adjust IRQ initialization
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Dec 2018 11:20:55 +0000 (12:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Dec 2018 11:20:55 +0000 (12:20 +0100)
commit69343d5af45076e5b196833f3082acf6f7248299
tree83c7885b2c898e88e325a2ef46589aeb510e2708
parentc46dba0d72e519743823c76c676858ad1af48b90
console: adjust IRQ initialization

In order for a Xen internal PCI device driver to enable MSI on the
device, we need another hook which the driver can use to create the IRQ
(doing this in the init_preirq hook is too early, since IRQ code hasn't
got initialized at that time yet, and doing it in init_postirq is too
late because at least on x86 smp_intr_init() needs to know the IRQ
number).

On x86 this additionally requires a slight ordering change to IRQ
initialization, to facilitate calling the new hook between basic
initialization and the call path leading to smp_intr_init().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/i8259.c
xen/arch/x86/setup.c
xen/drivers/char/console.c
xen/drivers/char/serial.c
xen/include/xen/console.h
xen/include/xen/serial.h