|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86: Move mach-default/irq_vectors.h to asm/irq-vectors.h
commit fc147fec19a89ed782d7bf5f4d7d78fdf982fcdf
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri Nov 8 19:40:46 2024 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Nov 11 15:25:39 2024 +0000
x86: Move mach-default/irq_vectors.h to asm/irq-vectors.h
irq_vectors.h is included by with multiple paths. Move it to be a regular
header instead.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/apic.c | 3 +-
xen/arch/x86/cpu/vpmu.c | 4 +-
xen/arch/x86/i8259.c | 2 +-
xen/arch/x86/include/asm/irq-vectors.h | 46 ++++++++++++++++++++++
.../x86/include/asm/mach-default/irq_vectors.h | 46 ----------------------
xen/arch/x86/io_apic.c | 2 +-
xen/arch/x86/irq.c | 2 +-
xen/arch/x86/msi.c | 2 +-
xen/arch/x86/pv/hypercall.c | 3 +-
xen/arch/x86/pv/traps.c | 2 +-
xen/arch/x86/smp.c | 2 +-
xen/arch/x86/smpboot.c | 2 +-
xen/arch/x86/traps.c | 2 +-
xen/arch/x86/x86_64/compat/entry.S | 2 +-
xen/arch/x86/x86_64/entry.S | 2 +-
15 files changed, 63 insertions(+), 59 deletions(-)
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c
index 8f192f80b8..8e8ff4d155 100644
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -26,6 +26,8 @@
#include <xen/delay.h>
#include <xen/smp.h>
#include <xen/softirq.h>
+
+#include <asm/irq-vectors.h>
#include <asm/mc146818rtc.h>
#include <asm/microcode.h>
#include <asm/msr.h>
@@ -38,7 +40,6 @@
#include <asm/genapic.h>
#include <io_ports.h>
-#include <irq_vectors.h>
#include <xen/kexec.h>
#include <asm/guest.h>
#include <asm/nmi.h>
diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c
index a5bb1689c7..c28192ea26 100644
--- a/xen/arch/x86/cpu/vpmu.c
+++ b/xen/arch/x86/cpu/vpmu.c
@@ -13,13 +13,15 @@
#include <xen/guest_access.h>
#include <xen/hypercall.h>
#include <xen/sched.h>
+
+#include <asm/irq-vectors.h>
#include <asm/regs.h>
#include <asm/msr.h>
#include <asm/nmi.h>
#include <asm/p2m.h>
#include <asm/vpmu.h>
#include <asm/apic.h>
-#include <irq_vectors.h>
+
#include <public/pmu.h>
#include <xsm/xsm.h>
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c
index 10ddd2b0fb..a14f20bdf6 100644
--- a/xen/arch/x86/i8259.c
+++ b/xen/arch/x86/i8259.c
@@ -19,9 +19,9 @@
#include <xen/delay.h>
#include <asm/apic.h>
#include <asm/asm_defns.h>
+#include <asm/irq-vectors.h>
#include <asm/setup.h>
#include <io_ports.h>
-#include <irq_vectors.h>
/*
* This is the 'legacy' 8259A Programmable Interrupt Controller,
diff --git a/xen/arch/x86/include/asm/irq-vectors.h
b/xen/arch/x86/include/asm/irq-vectors.h
new file mode 100644
index 0000000000..f546aedd87
--- /dev/null
+++ b/xen/arch/x86/include/asm/irq-vectors.h
@@ -0,0 +1,46 @@
+#ifndef _ASM_IRQ_VECTORS_H
+#define _ASM_IRQ_VECTORS_H
+
+/* Processor-initiated interrupts are all high priority. */
+#define SPURIOUS_APIC_VECTOR 0xff
+#define ERROR_APIC_VECTOR 0xfe
+#define INVALIDATE_TLB_VECTOR 0xfd
+#define EVENT_CHECK_VECTOR 0xfc
+#define CALL_FUNCTION_VECTOR 0xfb
+#define LOCAL_TIMER_VECTOR 0xfa
+#define PMU_APIC_VECTOR 0xf9
+/*
+ * High-priority dynamically-allocated vectors. For interrupts that
+ * must be higher priority than any guest-bound interrupt.
+ */
+#define FIRST_HIPRIORITY_VECTOR 0xf1
+#define LAST_HIPRIORITY_VECTOR 0xf8
+/* IRQ0 (timer) is statically allocated but must be high priority. */
+#define IRQ0_VECTOR 0xf0
+
+/* Legacy PIC uses vectors 0x20-0x2f. */
+#define FIRST_LEGACY_VECTOR FIRST_DYNAMIC_VECTOR
+#define LAST_LEGACY_VECTOR (FIRST_LEGACY_VECTOR + 0xf)
+
+#ifdef CONFIG_PV32
+#define HYPERCALL_VECTOR 0x82
+#endif
+
+#define LEGACY_SYSCALL_VECTOR 0x80
+
+/*
+ * Dynamically-allocated vectors available to any driver. Note that the
+ * legacy vector range is a sub-range of this one, re-used on CPUs not
+ * sharing vectors with CPU 0.
+ */
+#define FIRST_DYNAMIC_VECTOR 0x20
+#define LAST_DYNAMIC_VECTOR 0xef
+#define NR_DYNAMIC_VECTORS (LAST_DYNAMIC_VECTOR - FIRST_DYNAMIC_VECTOR + 1)
+
+/* There's no IRQ2 at the PIC. */
+#define IRQ_MOVE_CLEANUP_VECTOR (FIRST_LEGACY_VECTOR + 2)
+
+#define FIRST_IRQ_VECTOR FIRST_DYNAMIC_VECTOR
+#define LAST_IRQ_VECTOR LAST_HIPRIORITY_VECTOR
+
+#endif /* _ASM_IRQ_VECTORS_H */
diff --git a/xen/arch/x86/include/asm/mach-default/irq_vectors.h
b/xen/arch/x86/include/asm/mach-default/irq_vectors.h
deleted file mode 100644
index f546aedd87..0000000000
--- a/xen/arch/x86/include/asm/mach-default/irq_vectors.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef _ASM_IRQ_VECTORS_H
-#define _ASM_IRQ_VECTORS_H
-
-/* Processor-initiated interrupts are all high priority. */
-#define SPURIOUS_APIC_VECTOR 0xff
-#define ERROR_APIC_VECTOR 0xfe
-#define INVALIDATE_TLB_VECTOR 0xfd
-#define EVENT_CHECK_VECTOR 0xfc
-#define CALL_FUNCTION_VECTOR 0xfb
-#define LOCAL_TIMER_VECTOR 0xfa
-#define PMU_APIC_VECTOR 0xf9
-/*
- * High-priority dynamically-allocated vectors. For interrupts that
- * must be higher priority than any guest-bound interrupt.
- */
-#define FIRST_HIPRIORITY_VECTOR 0xf1
-#define LAST_HIPRIORITY_VECTOR 0xf8
-/* IRQ0 (timer) is statically allocated but must be high priority. */
-#define IRQ0_VECTOR 0xf0
-
-/* Legacy PIC uses vectors 0x20-0x2f. */
-#define FIRST_LEGACY_VECTOR FIRST_DYNAMIC_VECTOR
-#define LAST_LEGACY_VECTOR (FIRST_LEGACY_VECTOR + 0xf)
-
-#ifdef CONFIG_PV32
-#define HYPERCALL_VECTOR 0x82
-#endif
-
-#define LEGACY_SYSCALL_VECTOR 0x80
-
-/*
- * Dynamically-allocated vectors available to any driver. Note that the
- * legacy vector range is a sub-range of this one, re-used on CPUs not
- * sharing vectors with CPU 0.
- */
-#define FIRST_DYNAMIC_VECTOR 0x20
-#define LAST_DYNAMIC_VECTOR 0xef
-#define NR_DYNAMIC_VECTORS (LAST_DYNAMIC_VECTOR - FIRST_DYNAMIC_VECTOR + 1)
-
-/* There's no IRQ2 at the PIC. */
-#define IRQ_MOVE_CLEANUP_VECTOR (FIRST_LEGACY_VECTOR + 2)
-
-#define FIRST_IRQ_VECTOR FIRST_DYNAMIC_VECTOR
-#define LAST_IRQ_VECTOR LAST_HIPRIORITY_VECTOR
-
-#endif /* _ASM_IRQ_VECTORS_H */
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
index 13daebc10a..12cc4a561d 100644
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -35,6 +35,7 @@
#include <asm/genapic.h>
#include <asm/hpet.h>
#include <asm/io_apic.h>
+#include <asm/irq-vectors.h>
#include <asm/mc146818rtc.h>
#include <asm/smp.h>
#include <asm/desc.h>
@@ -42,7 +43,6 @@
#include <asm/setup.h>
#include <io_ports.h>
-#include <irq_vectors.h>
#include <public/physdev.h>
#include <xen/trace.h>
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c
index 6340cd6dd7..e56bacc88d 100644
--- a/xen/arch/x86/irq.c
+++ b/xen/arch/x86/irq.c
@@ -25,11 +25,11 @@
#include <asm/apic.h>
#include <asm/genapic.h>
#include <asm/io_apic.h>
+#include <asm/irq-vectors.h>
#include <asm/msi.h>
#include <asm/current.h>
#include <asm/flushtlb.h>
-#include <irq_vectors.h>
#include <public/physdev.h>
/* opt_noirqbalance: If true, software IRQ balancing/affinity is disabled. */
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c
index 68d6e25178..be5ef99e08 100644
--- a/xen/arch/x86/msi.c
+++ b/xen/arch/x86/msi.c
@@ -26,6 +26,7 @@
#include <asm/genapic.h>
#include <asm/io.h>
#include <asm/io_apic.h>
+#include <asm/irq-vectors.h>
#include <asm/smp.h>
#include <asm/desc.h>
#include <asm/msi.h>
@@ -33,7 +34,6 @@
#include <asm/p2m.h>
#include <io_ports.h>
-#include <irq_vectors.h>
#include <public/physdev.h>
#include <xen/iommu.h>
#include <xsm/xsm.h>
diff --git a/xen/arch/x86/pv/hypercall.c b/xen/arch/x86/pv/hypercall.c
index 4294e93012..2febade44b 100644
--- a/xen/arch/x86/pv/hypercall.c
+++ b/xen/arch/x86/pv/hypercall.c
@@ -11,9 +11,10 @@
#include <xen/hypercall.h>
#include <xen/nospec.h>
#include <xen/trace.h>
+
#include <asm/apic.h>
+#include <asm/irq-vectors.h>
#include <asm/multicall.h>
-#include <irq_vectors.h>
/* Forced inline to cause 'compat' to be evaluated at compile time. */
static void always_inline
diff --git a/xen/arch/x86/pv/traps.c b/xen/arch/x86/pv/traps.c
index ed8aa97382..fd1597d0bd 100644
--- a/xen/arch/x86/pv/traps.c
+++ b/xen/arch/x86/pv/traps.c
@@ -13,10 +13,10 @@
#include <xen/softirq.h>
#include <asm/debugreg.h>
+#include <asm/irq-vectors.h>
#include <asm/pv/trace.h>
#include <asm/shared.h>
#include <asm/traps.h>
-#include <irq_vectors.h>
void pv_inject_event(const struct x86_event *event)
{
diff --git a/xen/arch/x86/smp.c b/xen/arch/x86/smp.c
index bd337e548c..02a6ed7593 100644
--- a/xen/arch/x86/smp.c
+++ b/xen/arch/x86/smp.c
@@ -19,13 +19,13 @@
#include <asm/current.h>
#include <asm/genapic.h>
#include <asm/guest.h>
+#include <asm/irq-vectors.h>
#include <asm/smp.h>
#include <asm/mc146818rtc.h>
#include <asm/flushtlb.h>
#include <asm/hardirq.h>
#include <asm/hpet.h>
#include <asm/setup.h>
-#include <irq_vectors.h>
/* Helper functions to prepare APIC register values. */
static unsigned int prepare_ICR(unsigned int shortcut, int vector)
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c
index 42272a9844..568a3abe1f 100644
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -39,7 +39,7 @@
#include <asm/time.h>
#include <asm/tboot.h>
#include <asm/trampoline.h>
-#include <irq_vectors.h>
+#include <asm/irq-vectors.h>
unsigned long __read_mostly trampoline_phys;
enum ap_boot_method __read_mostly ap_boot_method = AP_BOOT_NORMAL;
diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index a9c2c607eb..fd8a4448e3 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -69,7 +69,7 @@
#include <public/hvm/params.h>
#include <asm/cpuid.h>
#include <xsm/xsm.h>
-#include <asm/mach-default/irq_vectors.h>
+#include <asm/irq-vectors.h>
#include <asm/pv/traps.h>
#include <asm/pv/trace.h>
#include <asm/pv/mm.h>
diff --git a/xen/arch/x86/x86_64/compat/entry.S
b/xen/arch/x86/x86_64/compat/entry.S
index a99646c0cd..1e87652f4b 100644
--- a/xen/arch/x86/x86_64/compat/entry.S
+++ b/xen/arch/x86/x86_64/compat/entry.S
@@ -5,11 +5,11 @@
.file "x86_64/compat/entry.S"
#include <asm/asm_defns.h>
+#include <asm/irq-vectors.h>
#include <asm/page.h>
#include <asm/processor.h>
#include <asm/desc.h>
#include <public/xen.h>
-#include <irq_vectors.h>
FUNC(entry_int82)
ENDBR64
diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S
index c5c723b5f4..40d094d5b2 100644
--- a/xen/arch/x86/x86_64/entry.S
+++ b/xen/arch/x86/x86_64/entry.S
@@ -7,10 +7,10 @@
.file "x86_64/entry.S"
#include <asm/asm_defns.h>
+#include <asm/irq-vectors.h>
#include <asm/page.h>
#include <asm/processor.h>
#include <public/xen.h>
-#include <irq_vectors.h>
/* %rsp: struct cpu_user_regs */
.macro ASSERT_CONTEXT_IS_XEN
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |