hv: mod: do not use explicit arch name when including headers

Instead of "#include <x86/foo.h>", use "#include <asm/foo.h>".

In other words, we are adopting the same practice in Linux kernel.

Tracked-On: #5920
Signed-off-by: Liang Yi <yi.liang@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Liang Yi
2021-04-23 15:50:57 +08:00
committed by wenlingz
parent f3305b6373
commit 688a41c290
205 changed files with 666 additions and 660 deletions

View File

@@ -29,7 +29,7 @@
#ifndef APICREG_H
#define APICREG_H
#include <x86/page.h>
#include <asm/page.h>
/*
* Local && I/O APIC definitions.

View File

@@ -8,7 +8,7 @@
#include <types.h>
#include <board_info.h>
#include <x86/host_pm.h>
#include <asm/host_pm.h>
#include <pci.h>
#include <misc_cfg.h>

View File

@@ -69,7 +69,7 @@
#ifndef ASSEMBLER
#include <types.h>
#include <x86/cpu.h>
#include <asm/cpu.h>
#define TSS_AVAIL (9U)

View File

@@ -7,7 +7,7 @@
#ifndef HYPERV_H
#define HYPERV_H
#include <x86/guest/vcpuid.h>
#include <asm/guest/vcpuid.h>
/* Hyper-V MSR numbers */
#define HV_X64_MSR_GUEST_OS_ID 0x40000000U

View File

@@ -31,8 +31,8 @@
#define INSTR_EMUL_H
#include <types.h>
#include <x86/cpu.h>
#include <x86/guest/guest_memory.h>
#include <asm/cpu.h>
#include <asm/guest/guest_memory.h>
struct acrn_vcpu;
struct instr_emul_vie_op {

View File

@@ -7,7 +7,7 @@
#ifndef TRUSTY_H_
#define TRUSTY_H_
#include <acrn_hv_defs.h>
#include <x86/seed.h>
#include <asm/seed.h>
#define RPMB_MAX_PARTITION_NUMBER 6U
#define MMC_PROD_NAME_WITH_PSN_LEN 15U

View File

@@ -17,17 +17,17 @@
#ifndef ASSEMBLER
#include <acrn_common.h>
#include <x86/guest/guest_memory.h>
#include <x86/guest/virtual_cr.h>
#include <x86/guest/vlapic.h>
#include <x86/guest/vmtrr.h>
#include <asm/guest/guest_memory.h>
#include <asm/guest/virtual_cr.h>
#include <asm/guest/vlapic.h>
#include <asm/guest/vmtrr.h>
#include <schedule.h>
#include <event.h>
#include <io_req.h>
#include <x86/msr.h>
#include <x86/cpu.h>
#include <x86/guest/instr_emul.h>
#include <x86/vmx.h>
#include <asm/msr.h>
#include <asm/cpu.h>
#include <asm/guest/instr_emul.h>
#include <asm/vmx.h>
/**
* @brief vcpu

View File

@@ -30,9 +30,9 @@
#ifndef VLAPIC_H
#define VLAPIC_H
#include <x86/page.h>
#include <x86/timer.h>
#include <x86/apicreg.h>
#include <asm/page.h>
#include <asm/timer.h>
#include <asm/apicreg.h>
/**
* @file vlapic.h

View File

@@ -13,22 +13,22 @@
#ifndef ASSEMBLER
#include <x86/lib/bits.h>
#include <x86/lib/spinlock.h>
#include <x86/pgtable.h>
#include <x86/guest/vcpu.h>
#include <asm/lib/bits.h>
#include <asm/lib/spinlock.h>
#include <asm/pgtable.h>
#include <asm/guest/vcpu.h>
#include <vioapic.h>
#include <vpic.h>
#include <x86/guest/vmx_io.h>
#include <asm/guest/vmx_io.h>
#include <vuart.h>
#include <x86/guest/trusty.h>
#include <x86/guest/vcpuid.h>
#include <asm/guest/trusty.h>
#include <asm/guest/vcpuid.h>
#include <vpci.h>
#include <x86/cpu_caps.h>
#include <x86/e820.h>
#include <x86/vm_config.h>
#include <asm/cpu_caps.h>
#include <asm/e820.h>
#include <asm/vm_config.h>
#ifdef CONFIG_HYPERV_ENABLED
#include <x86/guest/hyperv.h>
#include <asm/guest/hyperv.h>
#endif
enum reset_mode {

View File

@@ -12,7 +12,7 @@
#ifndef ASSEMBLER
#include <types.h>
#include <x86/guest/vcpu.h>
#include <asm/guest/vcpu.h>
#define VMX_VMENTRY_FAIL 0x80000000U

View File

@@ -7,7 +7,7 @@
#ifndef ARCH_X86_IOAPIC_H
#define ARCH_X86_IOAPIC_H
#include <x86/apicreg.h>
#include <asm/apicreg.h>
#define NR_LEGACY_IRQ 16U
#define NR_LEGACY_PIN NR_LEGACY_IRQ

View File

@@ -10,7 +10,7 @@
#include <types.h>
/**
* @file arch/x86/irq.h
* @file arch/x86/asm/irq.h
*
* @brief public APIs for x86 IRQ handling
*/

View File

@@ -29,7 +29,7 @@
#ifndef BITS_H
#define BITS_H
#include <x86/lib/atomic.h>
#include <asm/lib/atomic.h>
/**
*

View File

@@ -45,10 +45,10 @@
#ifndef ASSEMBLER
#include <x86/cpu.h>
#include <x86/page.h>
#include <x86/pgtable.h>
#include <x86/cpu_caps.h>
#include <asm/cpu.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/cpu_caps.h>
/* Define cache line size (in bytes) */
#define CACHE_LINE_SIZE 64U

View File

@@ -7,7 +7,7 @@
#ifndef PAGE_H
#define PAGE_H
#include <x86/lib/spinlock.h>
#include <asm/lib/spinlock.h>
#define PAGE_SHIFT 12U
#define PAGE_SIZE (1U << PAGE_SHIFT)

View File

@@ -7,7 +7,7 @@
#ifndef PCI_DEV_H_
#define PCI_DEV_H_
#include <x86/vm_config.h>
#include <asm/vm_config.h>
extern struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@@ -10,15 +10,15 @@
#include <types.h>
#include <sbuf.h>
#include <irq.h>
#include <x86/notify.h>
#include <x86/page.h>
#include <x86/timer.h>
#include <profiling.h>
#include <logmsg.h>
#include <x86/gdt.h>
#include <schedule.h>
#include <x86/security.h>
#include <x86/vm_config.h>
#include <asm/notify.h>
#include <asm/page.h>
#include <asm/timer.h>
#include <asm/gdt.h>
#include <asm/security.h>
#include <asm/vm_config.h>
struct per_cpu_region {
/* vmxon_region MUST be 4KB-aligned */

View File

@@ -11,7 +11,7 @@
#ifndef PGTABLE_H
#define PGTABLE_H
#include <x86/page.h>
#include <asm/page.h>
#define PAGE_PRESENT (1UL << 0U)
#define PAGE_RW (1UL << 1U)

View File

@@ -7,7 +7,7 @@
#ifndef RTCM_H
#define RTCM_H
#include <x86/rtct.h>
#include <asm/rtct.h>
#define MSABI __attribute__((ms_abi))

View File

@@ -14,7 +14,7 @@
#include <acrn_common.h>
#include <vm_uuids.h>
#include <vm_configurations.h>
#include <x86/sgx.h>
#include <asm/sgx.h>
#include <acrn_hv_defs.h>
#define CONFIG_MAX_VM_NUM (PRE_VM_NUM + SOS_VM_NUM + MAX_POST_VM_NUM)

View File

@@ -6,7 +6,7 @@
#ifndef ZEROPAGE_H
#define ZEROPAGE_H
#include <x86/e820.h>
#include <asm/e820.h>
#include <efi.h>
struct zero_page {