mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
hv: vcpuid: present sgx capabilities to guest
If sgx is supported in guest, present SGX capabilities to guest. There will be only one EPC section presented to guest, even if EPC memory for a guest is from muiltiple physcial EPC sections. Tracked-On: #3179 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
65d437283e
commit
1724996bc5
@@ -97,11 +97,15 @@
|
||||
/* CPUID.01H:ECX.PCID*/
|
||||
#define CPUID_ECX_PCID (1U<<17U)
|
||||
/* CPUID.0DH.EAX.XCR0_BNDREGS */
|
||||
#define CPUID_EAX_XCR0_BNDREGS (1U<<3U)
|
||||
#define CPUID_EAX_XCR0_BNDREGS (1U<<3U)
|
||||
/* CPUID.0DH.EAX.XCR0_BNDCSR */
|
||||
#define CPUID_EAX_XCR0_BNDCSR (1U<<4U)
|
||||
#define CPUID_EAX_XCR0_BNDCSR (1U<<4U)
|
||||
/* CPUID.12H.EAX.SGX1 */
|
||||
#define CPUID_EAX_SGX1 (1U<<0U)
|
||||
/* CPUID.12H.EAX.SGX2 */
|
||||
#define CPUID_EAX_SGX2 (1U<<1U)
|
||||
/* CPUID.80000001H.EDX.XD_BIT_AVAILABLE */
|
||||
#define CPUID_EDX_XD_BIT_AVIL (1U<<20U)
|
||||
#define CPUID_EDX_XD_BIT_AVIL (1U<<20U)
|
||||
|
||||
/* CPUID source operands */
|
||||
#define CPUID_VENDORSTRING 0U
|
||||
|
Reference in New Issue
Block a user