hv/mod_irq: do not include x86/irq.h in common/irq.h

Each .c file includes the arch specific irq header file (with full
path) by itself if required.

Tracked-On: #5825
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Liang Yi 2021-03-04 16:24:36 +08:00 committed by wenlingz
parent 741a208a02
commit df36da1b80
21 changed files with 24 additions and 16 deletions

View File

@ -12,6 +12,7 @@
#include <ept.h> #include <ept.h>
#include <vtd.h> #include <vtd.h>
#include <lapic.h> #include <lapic.h>
#include <arch/x86/irq.h>
#include <per_cpu.h> #include <per_cpu.h>
#include <cpufeatures.h> #include <cpufeatures.h>
#include <cpu_caps.h> #include <cpu_caps.h>

View File

@ -13,6 +13,7 @@
#include <per_cpu.h> #include <per_cpu.h>
#include <ioapic.h> #include <ioapic.h>
#include <pgtable.h> #include <pgtable.h>
#include <arch/x86/irq.h>
/* /*
* Check if the IRQ is single-destination and return the destination vCPU if so. * Check if the IRQ is single-destination and return the destination vCPU if so.

View File

@ -20,6 +20,7 @@
#include <mmu.h> #include <mmu.h>
#include <sprintf.h> #include <sprintf.h>
#include <lapic.h> #include <lapic.h>
#include <arch/x86/irq.h>
/* stack_frame is linked with the sequence of stack operation in arch_switch_to() */ /* stack_frame is linked with the sequence of stack operation in arch_switch_to() */
struct stack_frame { struct stack_frame {

View File

@ -17,6 +17,7 @@
#include <splitlock.h> #include <splitlock.h>
#include <trace.h> #include <trace.h>
#include <logmsg.h> #include <logmsg.h>
#include <arch/x86/irq.h>
#define EXCEPTION_ERROR_CODE_VALID 8U #define EXCEPTION_ERROR_CODE_VALID 8U

View File

@ -45,6 +45,7 @@
#include <ept.h> #include <ept.h>
#include <trace.h> #include <trace.h>
#include <logmsg.h> #include <logmsg.h>
#include <arch/x86/irq.h>
#include "vlapic_priv.h" #include "vlapic_priv.h"
#define VLAPIC_VERBOS 0 #define VLAPIC_VERBOS 0

View File

@ -37,6 +37,7 @@
#include <assign.h> #include <assign.h>
#include <vgpio.h> #include <vgpio.h>
#include <rtcm.h> #include <rtcm.h>
#include <arch/x86/irq.h>
/* Local variables */ /* Local variables */

View File

@ -9,6 +9,7 @@
#include <spinlock.h> #include <spinlock.h>
#include <ioapic.h> #include <ioapic.h>
#include <irq.h> #include <irq.h>
#include <arch/x86/irq.h>
#include <pgtable.h> #include <pgtable.h>
#include <io.h> #include <io.h>
#include <mmu.h> #include <mmu.h>

View File

@ -10,11 +10,10 @@
#include <spinlock.h> #include <spinlock.h>
#include <per_cpu.h> #include <per_cpu.h>
#include <io.h> #include <io.h>
#include <irq.h> #include <arch/x86/irq.h>
#include <idt.h> #include <arch/x86/idt.h>
#include <ioapic.h> #include <arch/x86/ioapic.h>
#include <lapic.h> #include <arch/x86/lapic.h>
#include <softirq.h>
#include <dump.h> #include <dump.h>
#include <logmsg.h> #include <logmsg.h>
#include <vmx.h> #include <vmx.h>

View File

@ -8,7 +8,7 @@
#include <errno.h> #include <errno.h>
#include <bits.h> #include <bits.h>
#include <atomic.h> #include <atomic.h>
#include <irq.h> #include <arch/x86/irq.h>
#include <cpu.h> #include <cpu.h>
#include <per_cpu.h> #include <per_cpu.h>
#include <lapic.h> #include <lapic.h>

View File

@ -13,6 +13,7 @@
#include <cpu_caps.h> #include <cpu_caps.h>
#include <softirq.h> #include <softirq.h>
#include <trace.h> #include <trace.h>
#include <arch/x86/irq.h>
#define MAX_TIMER_ACTIONS 32U #define MAX_TIMER_ACTIONS 32U
#define CAL_MS 10U #define CAL_MS 10U

View File

@ -13,6 +13,7 @@
#include <page.h> #include <page.h>
#include <pgtable.h> #include <pgtable.h>
#include <irq.h> #include <irq.h>
#include <arch/x86/irq.h>
#include <io.h> #include <io.h>
#include <mmu.h> #include <mmu.h>
#include <lapic.h> #include <lapic.h>

View File

@ -23,6 +23,7 @@
#include <ivshmem.h> #include <ivshmem.h>
#include <vmcs9900.h> #include <vmcs9900.h>
#include <rtcm.h> #include <rtcm.h>
#include <arch/x86/irq.h>
#define DBG_LEVEL_HYCALL 6U #define DBG_LEVEL_HYCALL 6U

View File

@ -8,6 +8,7 @@
#include <bits.h> #include <bits.h>
#include <irq.h> #include <irq.h>
#include <common/softirq.h> #include <common/softirq.h>
#include <arch/x86/irq.h>
#include <arch/x86/per_cpu.h> #include <arch/x86/per_cpu.h>
static spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, }; static spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };

View File

@ -12,6 +12,7 @@
#include <lapic.h> #include <lapic.h>
#include <schedule.h> #include <schedule.h>
#include <sprintf.h> #include <sprintf.h>
#include <arch/x86/irq.h>
bool is_idle_thread(const struct thread_object *obj) bool is_idle_thread(const struct thread_object *obj)
{ {

View File

@ -7,7 +7,7 @@
#include <types.h> #include <types.h>
#include <errno.h> #include <errno.h>
#include <irq.h> #include <arch/x86/irq.h>
#include <per_cpu.h> #include <per_cpu.h>
#include <pgtable.h> #include <pgtable.h>
#include <vmx.h> #include <vmx.h>

View File

@ -8,7 +8,7 @@
#include <errno.h> #include <errno.h>
#include <bits.h> #include <bits.h>
#include "shell_priv.h" #include "shell_priv.h"
#include <irq.h> #include <arch/x86/irq.h>
#include <console.h> #include <console.h>
#include <per_cpu.h> #include <per_cpu.h>
#include <vmx.h> #include <vmx.h>

View File

@ -4,7 +4,7 @@
*/ */
#include <vm.h> #include <vm.h>
#include <irq.h> #include <arch/x86/irq.h>
#include <errno.h> #include <errno.h>
#include <logmsg.h> #include <logmsg.h>

View File

@ -32,7 +32,7 @@
#include <vm.h> #include <vm.h>
#include <errno.h> #include <errno.h>
#include <irq.h> #include <arch/x86/irq.h>
#include <ept.h> #include <ept.h>
#include <assign.h> #include <assign.h>
#include <logmsg.h> #include <logmsg.h>

View File

@ -34,6 +34,7 @@
#include <spinlock.h> #include <spinlock.h>
#include <logmsg.h> #include <logmsg.h>
#include <ioapic.h> #include <ioapic.h>
#include <arch/x86/irq.h>
#define DBG_LEVEL_PIC 6U #define DBG_LEVEL_PIC 6U

View File

@ -7,9 +7,7 @@
#ifndef ARCH_X86_IRQ_H #ifndef ARCH_X86_IRQ_H
#define ARCH_X86_IRQ_H #define ARCH_X86_IRQ_H
#include <acrn_common.h> #include <types.h>
#include <util.h>
#include <spinlock.h>
/** /**
* @file arch/x86/irq.h * @file arch/x86/irq.h

View File

@ -7,11 +7,9 @@
#ifndef COMMON_IRQ_H #ifndef COMMON_IRQ_H
#define COMMON_IRQ_H #define COMMON_IRQ_H
#include <types.h> #include <lib/util.h>
#include <spinlock.h> #include <spinlock.h>
#include <arch/x86/irq.h>
/** /**
* @file common/irq.h * @file common/irq.h
* *