mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: cleanup vmcs.h
-- move 'RFLAGS_AC' to cpu.h -- move 'VMX_SUPPORT_UNRESTRICTED_GUEST' to msr.h and rename it to 'MSR_IA32_MISC_UNRESTRICTED_GUEST' -- move 'get_vcpu_mode' to vcpu.h -- remove deadcode 'vmx_eoi_exit()' 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>
This commit is contained in:
committed by
ACRN System Integration
parent
bd09f471a6
commit
2310d99ebf
@@ -323,8 +323,7 @@ static inline bool is_vmx_disabled(void)
|
||||
|
||||
static inline bool pcpu_has_vmx_unrestricted_guest_cap(void)
|
||||
{
|
||||
return ((msr_read(MSR_IA32_VMX_MISC) & VMX_SUPPORT_UNRESTRICTED_GUEST)
|
||||
!= 0UL);
|
||||
return ((msr_read(MSR_IA32_VMX_MISC) & MSR_IA32_MISC_UNRESTRICTED_GUEST) != 0UL);
|
||||
}
|
||||
|
||||
static int32_t check_vmx_mmu_cap(void)
|
||||
|
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <errno.h>
|
||||
#include <vmx.h>
|
||||
#include <guest_memory.h>
|
||||
#include <vcpu.h>
|
||||
#include <vm.h>
|
||||
|
@@ -11,7 +11,6 @@
|
||||
#include <cpuid.h>
|
||||
#include <vcpu.h>
|
||||
#include <vm.h>
|
||||
#include <vmcs.h>
|
||||
#include <vmx.h>
|
||||
#include <sgx.h>
|
||||
#include <guest_pm.h>
|
||||
|
Reference in New Issue
Block a user