Changeset 72286 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 22, 2018 2:02:15 PM (7 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r72208 r72286 316 316 VMMR3/NEMR3Native-win.cpp_DEFS.amd64 = _AMD64_ 317 317 VMMR3/NEMR3Native-win.cpp_INCS = \ 318 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17 083.0/include/10.0.17083.0/um \319 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17 083.0/include/10.0.17083.0/shared318 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/um \ 319 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/shared 320 320 endif 321 321 -
trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp
r72262 r72286 73 73 /** VID I/O control detection: Fake timeout input. */ 74 74 #define NEM_WIN_IOCTL_DETECTOR_FAKE_TIMEOUT UINT32_C(0x00080286) 75 76 77 /*********************************************************************************************************************************78 * Structures and Typedefs *79 *********************************************************************************************************************************/80 #ifndef NEM_WIN_USE_17110_PLUS_WDK81 typedef HRESULT (WINAPI *PFNWHVGETCAPABILITY_17110)(WHV_CAPABILITY_CODE, void *, uint32_t, uint32_t *);82 typedef HRESULT (WINAPI *PFNWHVSETPARTITIONPROPERTY_17110)(WHV_PARTITION_HANDLE, WHV_PARTITION_PROPERTY_CODE, void *, uint32_t);83 # define WHvCapabilityCodeExceptionExitBitmap ((WHV_CAPABILITY_CODE)0x00000003)84 #endif85 75 86 76 … … 124 114 125 115 /** The Windows build number. */ 126 static uint32_t g_uBuildNo = 171 10;116 static uint32_t g_uBuildNo = 17134; 127 117 128 118 … … 530 520 DECLINLINE(HRESULT) WHvGetCapabilityWrapper(WHV_CAPABILITY_CODE enmCap, WHV_CAPABILITY *pOutput, uint32_t cbOutput) 531 521 { 532 #ifdef NEM_WIN_USE_17110_PLUS_WDK533 522 return g_pfnWHvGetCapability(enmCap, pOutput, cbOutput, NULL); 534 #else535 if (g_uBuildNo >= 17110)536 {537 PFNWHVGETCAPABILITY_17110 pfnNewVersion = (PFNWHVGETCAPABILITY_17110)g_pfnWHvGetCapability;538 return pfnNewVersion(enmCap, &pOutput->HypervisorPresent, cbOutput - RT_OFFSETOF(WHV_CAPABILITY, HypervisorPresent), NULL);539 }540 return g_pfnWHvGetCapability(enmCap, pOutput, cbOutput);541 #endif542 523 } 543 524 … … 1032 1013 WHV_PARTITION_PROPERTY *pInput, uint32_t cbInput) 1033 1014 { 1034 #ifdef NEM_WIN_USE_17110_PLUS_WDK 1035 return g_pfnWHvSetPartitionProperty(hPartition, enmProp, pInput, cbInput, NULL); 1036 #else 1037 pInput->PropertyCode = enmProp; 1038 if (g_uBuildNo >= 17110) 1039 { 1040 PFNWHVSETPARTITIONPROPERTY_17110 pfnNewVersion = (PFNWHVSETPARTITIONPROPERTY_17110)g_pfnWHvSetPartitionProperty; 1041 return pfnNewVersion(hPartition, enmProp, &pInput->ExtendedVmExits, 1042 cbInput - RT_UOFFSETOF(WHV_PARTITION_PROPERTY, ExtendedVmExits)); 1043 } 1044 return g_pfnWHvSetPartitionProperty(hPartition, pInput, cbInput); 1045 #endif 1015 return g_pfnWHvSetPartitionProperty(hPartition, enmProp, pInput, cbInput - RT_UOFFSETOF(WHV_PARTITION_PROPERTY, ExtendedVmExits)); 1046 1016 } 1047 1017 … … 1554 1524 if (fExitInstr && pExitReason->IoPortAccess.InstructionByteCount > 0) 1555 1525 Log2(("Exit: + Instruction %.*Rhxs\n", 1556 pExitReason->IoPortAccess.InstructionByteCount, 1557 &pExitReason->IoPortAccess.InstructionBytes[g_uBuildNo >= 17110 ? 3 : 0])); 1526 pExitReason->IoPortAccess.InstructionByteCount, &pExitReason->IoPortAccess.InstructionBytes[0])); 1558 1527 } 1559 1528 } … … 1674 1643 if (pMemCtx->InstructionByteCount > 0) 1675 1644 rcStrict = IEMExecOneWithPrefetchedByPC(pVCpu, CPUMCTX2CORE(pCtx), pMemCtx->VpContext.Rip, 1676 &pMemCtx->InstructionBytes[g_uBuildNo >= 17110 ? 3 : 0], 1677 pMemCtx->InstructionByteCount); 1645 &pMemCtx->InstructionBytes[0], pMemCtx->InstructionByteCount); 1678 1646 else 1679 1647 rcStrict = IEMExecOne(pVCpu);
Note:
See TracChangeset
for help on using the changeset viewer.