mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +00:00
cleanup vmcs source and header files
remove no need included header files and macro definitions Changes to be committed: modified: arch/x86/vmcs.c modified: include/arch/x86/vmcs.h Tracked-On: #1842 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
731c4836dd
commit
bed82dd3f8
@ -7,20 +7,9 @@
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
#include <vm0_boot.h>
|
||||
#include <cpu.h>
|
||||
#ifdef CONFIG_EFI_STUB
|
||||
extern struct efi_context* efi_ctx;
|
||||
#endif
|
||||
|
||||
#define REAL_MODE_BSP_INIT_CODE_SEL (0xf000U)
|
||||
#define REAL_MODE_DATA_SEG_AR (0x0093U)
|
||||
#define REAL_MODE_CODE_SEG_AR (0x009fU)
|
||||
#define PROTECTED_MODE_DATA_SEG_AR (0xc093U)
|
||||
#define PROTECTED_MODE_CODE_SEG_AR (0xc09bU)
|
||||
#define DR7_INIT_VALUE (0x400UL)
|
||||
#define LDTR_AR (0x0082U) /* LDT, type must be 2, refer to SDM Vol3 26.3.1.2 */
|
||||
#define TR_AR (0x008bU) /* TSS (busy), refer to SDM Vol3 26.3.1.2 */
|
||||
|
||||
static uint64_t cr0_host_mask;
|
||||
static uint64_t cr0_always_on_mask;
|
||||
|
@ -10,10 +10,10 @@
|
||||
#define VM_SUCCESS 0
|
||||
#define VM_FAIL -1
|
||||
|
||||
#define VMX_VMENTRY_FAIL 0x80000000U
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
#define VMX_VMENTRY_FAIL 0x80000000U
|
||||
|
||||
static inline uint32_t vmx_eoi_exit(uint32_t vector)
|
||||
{
|
||||
return (VMX_EOI_EXIT0_FULL + ((vector >> 6U) * 2U));
|
||||
|
Loading…
Reference in New Issue
Block a user