mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 10:50:43 +00:00
hv:cleanup header file for guest folder
cleanup arch/x86/guest, only include some necessary header files, doesn't include hypervisor.h Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> modified: arch/x86/guest/assign.c modified: arch/x86/guest/ept.c modified: arch/x86/guest/guest_memory.c modified: arch/x86/guest/instr_emul.c modified: arch/x86/guest/io_emul.c modified: arch/x86/guest/pm.c modified: arch/x86/guest/trusty.c modified: arch/x86/guest/ucode.c modified: arch/x86/guest/vcpu.c modified: arch/x86/guest/vcpuid.c modified: arch/x86/guest/virq.c modified: arch/x86/guest/virtual_cr.c modified: arch/x86/guest/vlapic.c modified: arch/x86/guest/vm.c modified: arch/x86/guest/vmcall.c modified: arch/x86/guest/vmcs.c modified: arch/x86/guest/vmexit.c modified: arch/x86/guest/vmsr.c modified: arch/x86/guest/vmtrr.c modified: arch/x86/pm.c modified: include/arch/x86/guest/assign.h modified: include/arch/x86/guest/ept.h modified: include/arch/x86/guest/guest_memory.h modified: include/arch/x86/guest/instr_emul.h modified: include/arch/x86/guest/io_emul.h modified: include/arch/x86/guest/trusty.h modified: include/arch/x86/guest/vcpu.h modified: include/arch/x86/guest/vmcs.h modified: include/arch/x86/io_req.h modified: include/arch/x86/irq.h modified: include/arch/x86/lapic.h modified: include/arch/x86/mmu.h modified: include/arch/x86/pgtable.h modified: include/common/ptdev.h modified: include/debug/console.h
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#ifndef ASSIGN_H
|
||||
#define ASSIGN_H
|
||||
|
||||
#include <types.h>
|
||||
#include <ptdev.h>
|
||||
|
||||
/**
|
||||
|
@@ -6,6 +6,7 @@
|
||||
|
||||
#ifndef EPT_H
|
||||
#define EPT_H
|
||||
#include <types.h>
|
||||
|
||||
/**
|
||||
* Invalid HPA is defined for error checking,
|
||||
|
@@ -13,8 +13,10 @@
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
#include <mmu.h>
|
||||
#include <types.h>
|
||||
|
||||
struct acrn_vcpu;
|
||||
struct acrn_vm;
|
||||
/* Use # of paging level to identify paging mode */
|
||||
enum vm_paging_mode {
|
||||
PAGING_MODE_0_LEVEL = 0U, /* Flat */
|
||||
|
@@ -30,6 +30,8 @@
|
||||
#ifndef INSTR_EMUL_H
|
||||
#define INSTR_EMUL_H
|
||||
|
||||
#include <types.h>
|
||||
#include <cpu.h>
|
||||
#include <vcpu.h>
|
||||
|
||||
struct instr_emul_vie_op {
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#ifndef IO_EMUL_H
|
||||
#define IO_EMUL_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
/* Define emulated port IO index */
|
||||
#define PIC_MASTER_PIO_IDX 0U
|
||||
|
@@ -20,6 +20,9 @@
|
||||
|
||||
#define NON_TRUSTY_PDPT_ENTRIES 511U
|
||||
|
||||
struct acrn_vcpu;
|
||||
struct acrn_vm;
|
||||
|
||||
/* Structure of seed info */
|
||||
struct seed_info {
|
||||
uint8_t cse_svn;
|
||||
|
@@ -59,6 +59,7 @@
|
||||
#include <schedule.h>
|
||||
#include <io_req.h>
|
||||
#include <msr.h>
|
||||
#include <cpu.h>
|
||||
|
||||
/**
|
||||
* @brief vcpu
|
||||
|
@@ -11,7 +11,9 @@
|
||||
#define VM_FAIL -1
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
#include <types.h>
|
||||
#include <vmx.h>
|
||||
#include <vcpu.h>
|
||||
|
||||
#define VMX_VMENTRY_FAIL 0x80000000U
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <acrn_common.h>
|
||||
#include <list.h>
|
||||
|
||||
/**
|
||||
* @brief I/O Emulation
|
||||
|
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <acrn_common.h>
|
||||
#include <util.h>
|
||||
#include <spinlock.h>
|
||||
|
||||
/**
|
||||
* @file arch/x86/irq.h
|
||||
@@ -63,6 +64,8 @@
|
||||
#define IRQF_LEVEL (1U << 1U) /* 1: level trigger; 0: edge trigger */
|
||||
#define IRQF_PT (1U << 2U) /* 1: for passthrough dev */
|
||||
|
||||
struct acrn_vcpu;
|
||||
|
||||
/*
|
||||
* Definition of the stack frame layout
|
||||
*/
|
||||
|
@@ -7,6 +7,9 @@
|
||||
#ifndef INTR_LAPIC_H
|
||||
#define INTR_LAPIC_H
|
||||
|
||||
#include <types.h>
|
||||
#include <apicreg.h>
|
||||
|
||||
/* intr_lapic_icr_delivery_mode */
|
||||
#define INTR_LAPIC_ICR_FIXED 0x0U
|
||||
#define INTR_LAPIC_ICR_LP 0x1U
|
||||
|
@@ -46,6 +46,7 @@
|
||||
#include <cpu.h>
|
||||
#include <page.h>
|
||||
#include <pgtable.h>
|
||||
#include <cpu_caps.h>
|
||||
|
||||
/* Define cache line size (in bytes) */
|
||||
#define CACHE_LINE_SIZE 64U
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#ifndef PGTABLE_H
|
||||
#define PGTABLE_H
|
||||
|
||||
#include <page.h>
|
||||
|
||||
#define PAGE_PRESENT (1UL << 0U)
|
||||
#define PAGE_RW (1UL << 1U)
|
||||
#define PAGE_USER (1UL << 2U)
|
||||
|
Reference in New Issue
Block a user