mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
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:
@@ -29,7 +29,7 @@
|
||||
#ifndef APICREG_H
|
||||
#define APICREG_H
|
||||
|
||||
#include <x86/page.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
/*
|
||||
* Local && I/O APIC definitions.
|
@@ -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>
|
||||
|
@@ -69,7 +69,7 @@
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
#include <types.h>
|
||||
#include <x86/cpu.h>
|
||||
#include <asm/cpu.h>
|
||||
|
||||
#define TSS_AVAIL (9U)
|
||||
|
@@ -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
|
@@ -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 {
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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 {
|
@@ -12,7 +12,7 @@
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
#include <types.h>
|
||||
#include <x86/guest/vcpu.h>
|
||||
#include <asm/guest/vcpu.h>
|
||||
|
||||
#define VMX_VMENTRY_FAIL 0x80000000U
|
||||
|
@@ -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
|
@@ -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
|
||||
*/
|
@@ -29,7 +29,7 @@
|
||||
|
||||
#ifndef BITS_H
|
||||
#define BITS_H
|
||||
#include <x86/lib/atomic.h>
|
||||
#include <asm/lib/atomic.h>
|
||||
|
||||
/**
|
||||
*
|
@@ -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
|
@@ -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)
|
@@ -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];
|
||||
|
@@ -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 */
|
@@ -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)
|
@@ -7,7 +7,7 @@
|
||||
#ifndef RTCM_H
|
||||
#define RTCM_H
|
||||
|
||||
#include <x86/rtct.h>
|
||||
#include <asm/rtct.h>
|
||||
|
||||
#define MSABI __attribute__((ms_abi))
|
||||
|
@@ -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)
|
@@ -6,7 +6,7 @@
|
||||
|
||||
#ifndef ZEROPAGE_H
|
||||
#define ZEROPAGE_H
|
||||
#include <x86/e820.h>
|
||||
#include <asm/e820.h>
|
||||
#include <efi.h>
|
||||
|
||||
struct zero_page {
|
Reference in New Issue
Block a user