xen: setup pv irq ops vector earlier
authorJuergen Gross <[email protected]>
Thu, 12 Jul 2018 15:40:34 +0000 (17:40 +0200)
committerJuergen Gross <[email protected]>
Fri, 13 Jul 2018 06:23:27 +0000 (08:23 +0200)
commit0ce0bba4e5e0eb9b753bb821785de5d23c494392
treeb476ca68a86a8d489dace97ece86b63eab3a4c80
parente69b5d308da72cbf4e7911c3979f9a46d28532af
xen: setup pv irq ops vector earlier

Setting pv_irq_ops for Xen PV domains should be done as early as
possible in order to support e.g. very early printk() usage.

The same applies to xen_vcpu_info_reset(0), as it is needed for the
pv irq ops.

Move the call of xen_setup_machphys_mapping() after initializing the
pv functions as it contains a WARN_ON(), too.

Remove the no longer necessary conditional in xen_init_irq_ops()
from PVH V1 times to make clear this is a PV only function.

Cc: <[email protected]> # 4.14
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
arch/x86/xen/enlighten_pv.c
arch/x86/xen/irq.c