aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/irq.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2018-07-12 17:40:34 +0200
committerJuergen Gross <jgross@suse.com>2018-07-13 08:23:27 +0200
commit0ce0bba4e5e0eb9b753bb821785de5d23c494392 (patch)
treeb476ca68a86a8d489dace97ece86b63eab3a4c80 /arch/x86/xen/irq.c
parentxen: remove global bit from __default_kernel_pte_mask for pv guests (diff)
downloadlinux-dev-0ce0bba4e5e0eb9b753bb821785de5d23c494392.tar.xz
linux-dev-0ce0bba4e5e0eb9b753bb821785de5d23c494392.zip
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: <stable@vger.kernel.org> # 4.14 Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/xen/irq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/xen/irq.c b/arch/x86/xen/irq.c
index 74179852e46c..7515a19fd324 100644
--- a/arch/x86/xen/irq.c
+++ b/arch/x86/xen/irq.c
@@ -128,8 +128,6 @@ static const struct pv_irq_ops xen_irq_ops __initconst = {
void __init xen_init_irq_ops(void)
{
- /* For PVH we use default pv_irq_ops settings. */
- if (!xen_feature(XENFEAT_hvm_callback_vector))
- pv_irq_ops = xen_irq_ops;
+ pv_irq_ops = xen_irq_ops;
x86_init.irqs.intr_init = xen_init_IRQ;
}