mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 00:17:01 +00:00
-- now hypervisor.h is the universal set of header file, this patch doesn't include hypervisor.h, only include some necessary header files for vm.c and vm.h -- move 'struct vcpuid_entry' from vm.h to vcpuid.h -- remove dead code 'enum vm_privilege_level' -- move 'enum vpic_wire_mode' from vm.h to vpic.h Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
29 lines
561 B
C
29 lines
561 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VCPUID_H_
|
|
#define VCPUID_H_
|
|
|
|
#define CPUID_CHECK_SUBLEAF (1U << 0U)
|
|
#define MAX_VM_VCPUID_ENTRIES 64U
|
|
struct vcpuid_entry {
|
|
uint32_t eax;
|
|
uint32_t ebx;
|
|
uint32_t ecx;
|
|
uint32_t edx;
|
|
uint32_t leaf;
|
|
uint32_t subleaf;
|
|
uint32_t flags;
|
|
uint32_t padding;
|
|
};
|
|
|
|
int32_t set_vcpuid_entries(struct acrn_vm *vm);
|
|
void guest_cpuid(struct acrn_vcpu *vcpu,
|
|
uint32_t *eax, uint32_t *ebx,
|
|
uint32_t *ecx, uint32_t *edx);
|
|
|
|
#endif /* VCPUID_H_ */
|