VirtualBox

Changeset 72286 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 22, 2018 2:02:15 PM (7 years ago)
Author:
vboxsync
Message:

NEM/win: Updated SDK.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r72208 r72286  
    316316 VMMR3/NEMR3Native-win.cpp_DEFS.amd64 = _AMD64_
    317317 VMMR3/NEMR3Native-win.cpp_INCS = \
    318         $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17083.0/include/10.0.17083.0/um \
    319         $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17083.0/include/10.0.17083.0/shared
     318        $(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
    320320endif
    321321
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r72262 r72286  
    7373/** VID I/O control detection: Fake timeout input. */
    7474#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_WDK
    81 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 #endif
    8575
    8676
     
    124114
    125115/** The Windows build number. */
    126 static uint32_t g_uBuildNo = 17110;
     116static uint32_t g_uBuildNo = 17134;
    127117
    128118
     
    530520DECLINLINE(HRESULT) WHvGetCapabilityWrapper(WHV_CAPABILITY_CODE enmCap, WHV_CAPABILITY *pOutput, uint32_t cbOutput)
    531521{
    532 #ifdef NEM_WIN_USE_17110_PLUS_WDK
    533522    return g_pfnWHvGetCapability(enmCap, pOutput, cbOutput, NULL);
    534 #else
    535     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 #endif
    542523}
    543524
     
    10321013                                                   WHV_PARTITION_PROPERTY *pInput, uint32_t cbInput)
    10331014{
    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));
    10461016}
    10471017
     
    15541524        if (fExitInstr && pExitReason->IoPortAccess.InstructionByteCount > 0)
    15551525            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]));
    15581527    }
    15591528}
     
    16741643    if (pMemCtx->InstructionByteCount > 0)
    16751644        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);
    16781646    else
    16791647        rcStrict = IEMExecOne(pVCpu);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette