headers: Add new names in WHV_CAPABILITY_CODE in winhvplatformdefs.h

Existent enumerators have been updated a little to prevent a trailing comma.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
Biswapriyo Nath 2024-06-11 19:07:06 +00:00 committed by LIU Hao
parent 4a2b747dc3
commit 5fb9146b88

View File

@ -7,23 +7,51 @@
#define _WINHVAPIDEFS_H_ #define _WINHVAPIDEFS_H_
typedef enum WHV_CAPABILITY_CODE { typedef enum WHV_CAPABILITY_CODE {
WHvCapabilityCodeHypervisorPresent = 0x00000000, WHvCapabilityCodeHypervisorPresent = 0x00000000
WHvCapabilityCodeFeatures = 0x00000001, ,WHvCapabilityCodeFeatures = 0x00000001
WHvCapabilityCodeExtendedVmExits = 0x00000002, ,WHvCapabilityCodeExtendedVmExits = 0x00000002
WHvCapabilityCodeExceptionExitBitmap = 0x00000003, #if defined(__x86_64__)
WHvCapabilityCodeX64MsrExitBitmap = 0x00000004, ,WHvCapabilityCodeExceptionExitBitmap = 0x00000003
WHvCapabilityCodeGpaRangePopulateFlags = 0x00000005, ,WHvCapabilityCodeX64MsrExitBitmap = 0x00000004
WHvCapabilityCodeSchedulerFeatures = 0x00000006, #endif
WHvCapabilityCodeProcessorVendor = 0x00001000, ,WHvCapabilityCodeGpaRangePopulateFlags = 0x00000005
WHvCapabilityCodeProcessorFeatures = 0x00001001, ,WHvCapabilityCodeSchedulerFeatures = 0x00000006
WHvCapabilityCodeProcessorClFlushSize = 0x00001002, ,WHvCapabilityCodeProcessorVendor = 0x00001000
WHvCapabilityCodeProcessorXsaveFeatures = 0x00001003, ,WHvCapabilityCodeProcessorFeatures = 0x00001001
WHvCapabilityCodeProcessorClockFrequency = 0x00001004, ,WHvCapabilityCodeProcessorClFlushSize = 0x00001002
WHvCapabilityCodeInterruptClockFrequency = 0x00001005, #if defined(__x86_64__)
WHvCapabilityCodeProcessorFeaturesBanks = 0x00001006, ,WHvCapabilityCodeProcessorXsaveFeatures = 0x00001003
WHvCapabilityCodeProcessorFrequencyCap = 0x00001007, #endif
WHvCapabilityCodeSyntheticProcessorFeaturesBanks = 0x00001008, ,WHvCapabilityCodeProcessorClockFrequency = 0x00001004
WHvCapabilityCodeProcessorPerfmonFeatures = 0x00001009 #if defined(__x86_64__)
,WHvCapabilityCodeInterruptClockFrequency = 0x00001005
#endif
,WHvCapabilityCodeProcessorFeaturesBanks = 0x00001006
,WHvCapabilityCodeProcessorFrequencyCap = 0x00001007
,WHvCapabilityCodeSyntheticProcessorFeaturesBanks = 0x00001008
#if defined(__x86_64__)
,WHvCapabilityCodeProcessorPerfmonFeatures = 0x00001009
#endif
,WHvCapabilityCodePhysicalAddressWidth = 0x0000100A
#if defined(__x86_64__)
,WHvCapabilityCodeVmxBasic = 0x00002000
,WHvCapabilityCodeVmxPinbasedCtls = 0x00002001
,WHvCapabilityCodeVmxProcbasedCtls = 0x00002002
,WHvCapabilityCodeVmxExitCtls = 0x00002003
,WHvCapabilityCodeVmxEntryCtls = 0x00002004
,WHvCapabilityCodeVmxMisc = 0x00002005
,WHvCapabilityCodeVmxCr0Fixed0 = 0x00002006
,WHvCapabilityCodeVmxCr0Fixed1 = 0x00002007
,WHvCapabilityCodeVmxCr4Fixed0 = 0x00002008
,WHvCapabilityCodeVmxCr4Fixed1 = 0x00002009
,WHvCapabilityCodeVmxVmcsEnum = 0x0000200A
,WHvCapabilityCodeVmxProcbasedCtls2 = 0x0000200B
,WHvCapabilityCodeVmxEptVpidCap = 0x0000200C
,WHvCapabilityCodeVmxTruePinbasedCtls = 0x0000200D
,WHvCapabilityCodeVmxTrueProcbasedCtls = 0x0000200E
,WHvCapabilityCodeVmxTrueExitCtls = 0x0000200F
,WHvCapabilityCodeVmxTrueEntryCtls = 0x00002010
#endif
} WHV_CAPABILITY_CODE; } WHV_CAPABILITY_CODE;
typedef union WHV_CAPABILITY_FEATURES { typedef union WHV_CAPABILITY_FEATURES {