ia64/pv_ops/xen: implement xen pv_irq_ops.
PATCH 20/23 ia64/pv_ops/xen: implement xen pv_irq_ops.
implement xen pv_irq_ops to paravirtualize irq handling with xen event channel.
Signed-off-by Akio Takebe <[email protected]>
Signed-off-by Alex Williamson <[email protected]>
Signed-off-by Isaku Yamahata <[email protected]>
--- arch/ia64/xen/Makefile | 2 +- arch/ia64/xen/irq_xen.c | 422 ++++++++++++++++++++++++++++++++++++++++++++ arch/ia64/xen/irq_xen.h | 34 ++++ arch/ia64/xen/xen_pv_ops.c | 3 + 4 files changed, 460 insertions(+), 1 deletions(-) create mode 100644 arch/ia64/xen/irq_xen.c create mode 100644 arch/ia64/xen/irq_xen.h
arch/ia64/xen/Makefile +1 -1
@@ -2,7 +2,7 @@ # Makefile for Xen components # -obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o \ +obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \ hypervisor.o xencomm.o xcom_hcall.o grant-table.o AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
arch/ia64/xen/irq_xen.c new file +422 -0
422 lines not on this page · raw message
arch/ia64/xen/irq_xen.h new file +34 -0
@@ -0,0 +1,34 @@ +/****************************************************************************** +* arch/ia64/xen/irq_xen.h +* +* Copyright (c) 2008 Isaku Yamahata <yamahata at valinux co jp> +* VA Linux Systems Japan K.K. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +*/ + +#ifndef IRQ_XEN_H +#define IRQ_XEN_H + +extern void (*late_time_init)(void ); +extern char xen_event_callback; +void __init xen_init_IRQ (void ); + +extern const struct pv_irq_ops xen_irq_ops__initdata ; +extern void xen_smp_intr_init (void ); +extern void xen_send_ipi (int cpu,int vec); + +#endif /* IRQ_XEN_H */
arch/ia64/xen/xen_pv_ops.c +3 -0
@@ -29,6 +29,8 @@#include <asm/xen/xencomm.h> #include <asm/xen/privop.h> +#include "irq_xen.h" +/*************************************************************************** * general info */
@@ -352,6 +354,7 @@ xen_setup_pv_ops(void) pv_init_ops = xen_init_ops; pv_cpu_ops = xen_cpu_ops; pv_iosapic_ops = xen_iosapic_ops; + pv_irq_ops = xen_irq_ops;paravirt_cpu_asm_init (&xen_cpu_asm_switch); }
Signature · 1 line
1.5.3
PATCH 20/23 ia64/pv_ops/xen: implement xen pv_irq_ops.
implement xen pv_irq_ops to paravirtualize irq handling with xen event channel.
Signed-off-by Akio Takebe <[email protected]>
Signed-off-by Alex Williamson <[email protected]>
Signed-off-by Isaku Yamahata <[email protected]>
--- arch/ia64/xen/Makefile | 2 +- arch/ia64/xen/irq_xen.c | 422 ++++++++++++++++++++++++++++++++++++++++++++ arch/ia64/xen/irq_xen.h | 34 ++++ arch/ia64/xen/xen_pv_ops.c | 3 + 4 files changed, 460 insertions(+), 1 deletions(-) create mode 100644 arch/ia64/xen/irq_xen.c create mode 100644 arch/ia64/xen/irq_xen.h
arch/ia64/xen/Makefile +1 -1
@@ -2,7 +2,7 @@ # Makefile for Xen components # -obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o \ +obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \ hypervisor.o xencomm.o xcom_hcall.o grant-table.o AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
arch/ia64/xen/irq_xen.c new file +422 -0
422 lines not on this page · raw message
arch/ia64/xen/irq_xen.h new file +34 -0
@@ -0,0 +1,34 @@ +/****************************************************************************** +* arch/ia64/xen/irq_xen.h +* +* Copyright (c) 2008 Isaku Yamahata <yamahata at valinux co jp> +* VA Linux Systems Japan K.K. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +*/ + +#ifndef IRQ_XEN_H +#define IRQ_XEN_H + +extern void (*late_time_init)(void ); +extern char xen_event_callback; +void __init xen_init_IRQ (void ); + +extern const struct pv_irq_ops xen_irq_ops__initdata ; +extern void xen_smp_intr_init (void ); +extern void xen_send_ipi (int cpu,int vec); + +#endif /* IRQ_XEN_H */
arch/ia64/xen/xen_pv_ops.c +3 -0
@@ -29,6 +29,8 @@#include <asm/xen/xencomm.h> #include <asm/xen/privop.h> +#include "irq_xen.h" +/*************************************************************************** * general info */
@@ -352,6 +354,7 @@ xen_setup_pv_ops(void) pv_init_ops = xen_init_ops; pv_cpu_ops = xen_cpu_ops; pv_iosapic_ops = xen_iosapic_ops; + pv_irq_ops = xen_irq_ops;paravirt_cpu_asm_init (&xen_cpu_asm_switch); }
Signature · 1 line
1.5.3
PATCH 20/23 ia64/pv_ops/xen: implement xen pv_irq_ops.
In reply to Isaku Yamahataimplement xen pv_irq_ops to paravirtualize irq handling with xen event channel.
Cc Jeremy Fitzhardinge <[email protected]>
Signed-off-by Akio Takebe <[email protected]>
Signed-off-by Alex Williamson <[email protected]>
Signed-off-by Isaku Yamahata <[email protected]>
--- arch/ia64/xen/Makefile | 2 +- arch/ia64/xen/irq_xen.c | 422 ++++++++++++++++++++++++++++++++++++++++++++ arch/ia64/xen/irq_xen.h | 34 ++++ arch/ia64/xen/xen_pv_ops.c | 3 + 4 files changed, 460 insertions(+), 1 deletions(-) create mode 100644 arch/ia64/xen/irq_xen.c create mode 100644 arch/ia64/xen/irq_xen.h
arch/ia64/xen/Makefile +1 -1
@@ -2,7 +2,7 @@ # Makefile for Xen components # -obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o \ +obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \ hypervisor.o xencomm.o xcom_hcall.o grant-table.o AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
arch/ia64/xen/irq_xen.c new file +422 -0
422 lines not on this page · raw message
arch/ia64/xen/irq_xen.h new file +34 -0
@@ -0,0 +1,34 @@ +/****************************************************************************** +* arch/ia64/xen/irq_xen.h +* +* Copyright (c) 2008 Isaku Yamahata <yamahata at valinux co jp> +* VA Linux Systems Japan K.K. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +*/ + +#ifndef IRQ_XEN_H +#define IRQ_XEN_H + +extern void (*late_time_init)(void ); +extern char xen_event_callback; +void __init xen_init_IRQ (void ); + +extern const struct pv_irq_ops xen_irq_ops__initdata ; +extern void xen_smp_intr_init (void ); +extern void xen_send_ipi (int cpu,int vec); + +#endif /* IRQ_XEN_H */
arch/ia64/xen/xen_pv_ops.c +3 -0
@@ -29,6 +29,8 @@#include <asm/xen/xencomm.h> #include <asm/xen/privop.h> +#include "irq_xen.h" +/*************************************************************************** * general info */
@@ -352,6 +354,7 @@ xen_setup_pv_ops(void) pv_init_ops = xen_init_ops; pv_cpu_ops = xen_cpu_ops; pv_iosapic_ops = xen_iosapic_ops; + pv_irq_ops = xen_irq_ops;paravirt_cpu_asm_init (&xen_cpu_asm_switch); }
Signature · 1 line
1.5.3