HV: further cleanup of header inclusions

According to the comments in hypervisor:
 " This file includes config header file "bsp_cfg.h" and other
	hypervisor used header files.
	It should be included in all the source files."

this patch includes all common header files in hypervisor.h
then removes other redundant inclusions

Signed-off-by: Zide Chen <zide.chen@intel.com>
This commit is contained in:
Zide Chen 2018-05-21 17:30:50 -07:00 committed by lijinxia
parent d594878e31
commit 8f16faab04
69 changed files with 21 additions and 246 deletions

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define ACTIVE_FLAG 0x1 /* any non zero should be okay */ #define ACTIVE_FLAG 0x1 /* any non zero should be okay */

View File

@ -29,13 +29,9 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <bsp_extern.h> #include <bsp_extern.h>
#include <hv_arch.h>
#include <schedule.h> #include <schedule.h>
#include <version.h> #include <version.h>
#include <hv_debug.h>
spinlock_t cpu_secondary_spinlock = { spinlock_t cpu_secondary_spinlock = {
.head = 0, .head = 0,

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <cpu.h> #include <cpu.h>
#include <mmu.h> #include <mmu.h>
#include <gdt.h> #include <gdt.h>

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <spinlock.h> #include <spinlock.h>
#include <gdt.h> #include <gdt.h>
#include <cpu.h> #include <cpu.h>

View File

@ -28,9 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <acrn_common.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <hv_arch.h>
/* The table includes cpu px info of Intel A3960 SoC */ /* The table includes cpu px info of Intel A3960 SoC */
struct cpu_px_data px_a3960[] = { struct cpu_px_data px_a3960[] = {

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static inline struct vcpuid_entry *find_vcpuid_entry(struct vcpu *vcpu, static inline struct vcpuid_entry *find_vcpuid_entry(struct vcpu *vcpu,
uint32_t leaf, uint32_t subleaf) uint32_t leaf, uint32_t subleaf)

View File

@ -2,7 +2,7 @@
* Copyright (C) <2018> Intel Corporation * Copyright (C) <2018> Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <acrn_common.h> #include <hypervisor.h>
int warm_reboot(void) int warm_reboot(void)
{ {

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_hv_defs.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "guest/instr_emul_wrapper.h" #include "guest/instr_emul_wrapper.h"
#include "guest/instr_emul.h" #include "guest/instr_emul.h"

View File

@ -28,8 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <gdt.h>
DEFINE_CPU_DATA(struct tss_64, tss); DEFINE_CPU_DATA(struct tss_64, tss);
DEFINE_CPU_DATA(struct host_gdt, gdt); DEFINE_CPU_DATA(struct host_gdt, gdt);

View File

@ -29,12 +29,7 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <bsp_extern.h> #include <bsp_extern.h>
#include <acrn_hv_defs.h>
#include <hv_debug.h>
#include <multiboot.h> #include <multiboot.h>
#define ACRN_DBG_GUEST 6 #define ACRN_DBG_GUEST 6

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "instr_emul_wrapper.h" #include "instr_emul_wrapper.h"
#include "instr_emul.h" #include "instr_emul.h"

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "instr_emul_wrapper.h" #include "instr_emul_wrapper.h"
#include "instr_emul.h" #include "instr_emul.h"

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <acrn_common.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <hv_arch.h>
#include <hv_debug.h>
int validate_pstate(struct vm *vm, uint64_t perf_ctl) int validate_pstate(struct vm *vm, uint64_t perf_ctl)
{ {

View File

@ -28,9 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <ucode.h> #include <ucode.h>
uint64_t get_microcode_version(void) uint64_t get_microcode_version(void)

View File

@ -29,11 +29,7 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <schedule.h> #include <schedule.h>
#include <hv_debug.h>
vm_sw_loader_t vm_sw_loader; vm_sw_loader_t vm_sw_loader;

View File

@ -31,10 +31,6 @@
#define pr_fmt(fmt) "vioapic: " fmt #define pr_fmt(fmt) "vioapic: " fmt
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define IOREGSEL 0x00 #define IOREGSEL 0x00
#define IOWIN 0x10 #define IOWIN 0x10

View File

@ -30,11 +30,6 @@
#define pr_fmt(fmt) "vlapic: " fmt #define pr_fmt(fmt) "vlapic: " fmt
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <acrn_hv_defs.h>
#include <hv_debug.h>
#include "instr_emul_wrapper.h" #include "instr_emul_wrapper.h"
#include "instr_emul.h" #include "instr_emul.h"

View File

@ -28,11 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <bsp_extern.h> #include <bsp_extern.h>
#include <hv_debug.h>
#include <multiboot.h> #include <multiboot.h>
/* Local variables */ /* Local variables */

View File

@ -28,11 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <acrn_hv_defs.h>
#include <hypercall.h> #include <hypercall.h>
int vmcall_vmexit_handler(struct vcpu *vcpu) int vmcall_vmexit_handler(struct vcpu *vcpu)

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <ucode.h> #include <ucode.h>
/*MRS need to be emulated, the order in this array better as freq of ops*/ /*MRS need to be emulated, the order in this array better as freq of ops*/

View File

@ -28,10 +28,6 @@
#define pr_fmt(fmt) "vpic: " fmt #define pr_fmt(fmt) "vpic: " fmt
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define VPIC_LOCK_INIT(vpic) spinlock_init(&((vpic)->lock)) #define VPIC_LOCK_INIT(vpic) spinlock_init(&((vpic)->lock))
#define VPIC_LOCK(vpic) spinlock_obtain(&((vpic)->lock)) #define VPIC_LOCK(vpic) spinlock_obtain(&((vpic)->lock))

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define EXCEPTION_ERROR_CODE_VALID 8 #define EXCEPTION_ERROR_CODE_VALID 8
#define INTERRPUT_QUEUE_BUFF_SIZE 255 #define INTERRPUT_QUEUE_BUFF_SIZE 255

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
/* Rate range 1 to 1000 or 1uSec to 1mSec */ /* Rate range 1 to 1000 or 1uSec to 1mSec */
#define APIC_TIMER_MAX 0xffffffff #define APIC_TIMER_MAX 0xffffffff

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
int interrupt_init(uint32_t cpu_id) int interrupt_init(uint32_t cpu_id)
{ {

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
int dm_emulate_pio_post(struct vcpu *vcpu) int dm_emulate_pio_post(struct vcpu *vcpu)
{ {

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
/* Register offsets */ /* Register offsets */
#define IOAPIC_REGSEL_OFFSET 0 #define IOAPIC_REGSEL_OFFSET 0

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static spinlock_t exception_spinlock = { .head = 0, .tail = 0, }; static spinlock_t exception_spinlock = { .head = 0, .tail = 0, };

View File

@ -28,10 +28,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static void *mmu_pml4_addr; static void *mmu_pml4_addr;

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static struct dev_handler_node *notification_node; static struct dev_handler_node *notification_node;

View File

@ -29,9 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
static DEFINE_CPU_DATA(uint64_t, softirq_pending); static DEFINE_CPU_DATA(uint64_t, softirq_pending);

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define MAX_TIMER_ACTIONS 32 #define MAX_TIMER_ACTIONS 32
#define TIMER_IRQ (NR_MAX_IRQS - 1) #define TIMER_IRQ (NR_MAX_IRQS - 1)

View File

@ -28,11 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <acrn_hv_defs.h>
#include <hv_debug.h>
#include <hkdf.h> #include <hkdf.h>
_Static_assert(NR_WORLD == 2, "Only 2 Worlds supported!"); _Static_assert(NR_WORLD == 2, "Only 2 Worlds supported!");

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static int unhandled_vmexit_handler(struct vcpu *vcpu); static int unhandled_vmexit_handler(struct vcpu *vcpu);
static int xsetbv_vmexit_handler(struct vcpu *vcpu); static int xsetbv_vmexit_handler(struct vcpu *vcpu);

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#ifdef CONFIG_EFI_STUB #ifdef CONFIG_EFI_STUB
#include <acrn_efi.h> #include <acrn_efi.h>
extern struct efi_ctx* efi_ctx; extern struct efi_ctx* efi_ctx;

View File

@ -31,10 +31,6 @@
#define pr_fmt(fmt) "iommu: " fmt #define pr_fmt(fmt) "iommu: " fmt
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define DBG_IOMMU 0 #define DBG_IOMMU 0

View File

@ -28,9 +28,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <cpu.h>
#include <hv_debug.h>
#include "acpi.h" #include "acpi.h"
#ifdef CONFIG_EFI_STUB #ifdef CONFIG_EFI_STUB
#include <acrn_efi.h> #include <acrn_efi.h>

View File

@ -27,14 +27,9 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "bsp_cfg.h" #include "bsp_cfg.h"
#ifdef CONFIG_DMAR_PARSE_ENABLED #ifdef CONFIG_DMAR_PARSE_ENABLED
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "vtd.h" #include "vtd.h"
#include "acpi.h" #include "acpi.h"

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <multiboot.h> #include <multiboot.h>
#include <zeropage.h> #include <zeropage.h>

View File

@ -29,8 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <vtd.h>
/* IOAPIC id */ /* IOAPIC id */
#define SBL_IOAPIC_ID 8 #define SBL_IOAPIC_ID 8

View File

@ -29,9 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#define NUM_USER_VMS 2 #define NUM_USER_VMS 2

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <multiboot.h> #include <multiboot.h>
#define MAX_PORT 0x10000 /* port 0 - 64K */ #define MAX_PORT 0x10000 /* port 0 - 64K */

View File

@ -29,14 +29,10 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <multiboot.h> #include <multiboot.h>
#ifdef CONFIG_EFI_STUB #ifdef CONFIG_EFI_STUB
#include <acrn_efi.h> #include <acrn_efi.h>
#endif #endif
#include <hv_debug.h>
/* IOAPIC id */ /* IOAPIC id */
#define UEFI_IOAPIC_ID 8 #define UEFI_IOAPIC_ID 8

View File

@ -29,9 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#define NUM_USER_VMS 2 #define NUM_USER_VMS 2

View File

@ -29,11 +29,7 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <schedule.h> #include <schedule.h>
#include <hv_debug.h>
bool x2apic_enabled; bool x2apic_enabled;

View File

@ -29,13 +29,8 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <schedule.h> #include <schedule.h>
#include <hypercall.h> #include <hypercall.h>
#include <acrn_hv_defs.h>
#include <hv_debug.h>
#include <version.h> #include <version.h>
#define ACRN_DBG_HYCALL 6 #define ACRN_DBG_HYCALL 6

View File

@ -4,10 +4,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_lib.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define ACRN_DBG_IOREQUEST 6 #define ACRN_DBG_IOREQUEST 6

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <schedule.h> #include <schedule.h>
struct sched_context { struct sched_context {

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
void __stack_chk_fail(void) void __stack_chk_fail(void)
{ {

View File

@ -29,11 +29,7 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hypercall.h> #include <hypercall.h>
#include <hv_debug.h>
int64_t hcall_world_switch(struct vcpu *vcpu) int64_t hcall_world_switch(struct vcpu *vcpu)
{ {

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <zeropage.h> #include <zeropage.h>
static uint32_t create_e820_table(struct e820_entry *_e820) static uint32_t create_e820_table(struct e820_entry *_e820)

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "serial_internal.h" #include "serial_internal.h"
static spinlock_t lock; static spinlock_t lock;

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
/* /*
* readable exception descriptors. * readable exception descriptors.

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#define LOG_ENTRY_SIZE 80 #define LOG_ENTRY_SIZE 80

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
static int charout(int cmd, const char *s, int sz, void *hnd) static int charout(int cmd, const char *s, int sz, void *hnd)
{ {

View File

@ -33,10 +33,7 @@
* *
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
DEFINE_CPU_DATA(uint64_t * [ACRN_SBUF_ID_MAX], sbuf); DEFINE_CPU_DATA(uint64_t * [ACRN_SBUF_ID_MAX], sbuf);

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "serial_internal.h" #include "serial_internal.h"
static struct uart *sio_ports[SERIAL_MAX_DEVS]; static struct uart *sio_ports[SERIAL_MAX_DEVS];

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <reboot.h> #include <reboot.h>
#include "shell_internal.h" #include "shell_internal.h"
#include "serial_internal.h" #include "serial_internal.h"

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "shell_internal.h" #include "shell_internal.h"
/* Shell that uses serial I/O */ /* Shell that uses serial I/O */

View File

@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hv_lib.h> #include <hypervisor.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include "uart16550.h" #include "uart16550.h"
#include "serial_internal.h" #include "serial_internal.h"

View File

@ -29,10 +29,6 @@
*/ */
#include <hypervisor.h> #include <hypervisor.h>
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include "uart16550.h" #include "uart16550.h"
#include "serial_internal.h" #include "serial_internal.h"

View File

@ -46,7 +46,13 @@
#define HYPERVISOR_H #define HYPERVISOR_H
/* Include config header file containing config options */ /* Include config header file containing config options */
#include <types.h>
#include "bsp_cfg.h" #include "bsp_cfg.h"
#include "acrn_common.h"
#include <acrn_hv_defs.h>
#include <hv_lib.h>
#include <hv_arch.h>
#include <hv_debug.h>
#ifndef ASSEMBLER #ifndef ASSEMBLER
/* hpa <--> hva, now it is 1:1 mapping */ /* hpa <--> hva, now it is 1:1 mapping */

View File

@ -31,8 +31,6 @@
#ifndef SPINLOCK_H #ifndef SPINLOCK_H
#define SPINLOCK_H #define SPINLOCK_H
#include <hypervisor.h>
#ifndef ASSEMBLER #ifndef ASSEMBLER
#include <types.h> #include <types.h>

View File

@ -39,11 +39,6 @@
#ifndef ACRN_HV_DEFS_H #ifndef ACRN_HV_DEFS_H
#define ACRN_HV_DEFS_H #define ACRN_HV_DEFS_H
/*
* Common structures for ACRN/VHM/DM
*/
#include "acrn_common.h"
/* /*
* Common structures for HV/VHM * Common structures for HV/VHM
*/ */

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <hv_lib.h> #include <hv_lib.h>
static int do_udiv32(uint32_t dividend, uint32_t divisor, static int do_udiv32(uint32_t dividend, uint32_t divisor,

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <hv_lib.h> #include <hv_lib.h>
void mdelay(uint32_t loop_count) void mdelay(uint32_t loop_count)

View File

@ -3,10 +3,6 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <hypervisor.h> #include <hypervisor.h>
/************************************************************************/ /************************************************************************/

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <hv_lib.h> #include <hv_lib.h>
#ifndef NULL #ifndef NULL

View File

@ -8,10 +8,6 @@
* constants. * constants.
*/ */
#include <hv_lib.h>
#include <acrn_common.h>
#include <hv_arch.h>
#include <hv_debug.h>
#include <hypervisor.h> #include <hypervisor.h>
/* Categories. */ /* Categories. */

View File

@ -28,7 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hypervisor.h>
#include <hv_lib.h> #include <hv_lib.h>
void udelay(int loop_count) void udelay(int loop_count)