VirtualBox

Changeset 86176 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Sep 19, 2020 3:33:04 PM (4 years ago)
Author:
vboxsync
Message:

Runtime/mp-r0drv-nt.cpp: Dynamically determine the size of the KAFFINITY_EX structure as it is not static across Windows versions (increased lately with W10 20H2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r85898 r86176  
    607607    /** Reserved / aligmment padding. */
    608608    uint32_t                Reserved;
    609     /** Bitmap where one bit corresponds to a CPU. */
    610     uintptr_t               Bitmap[20];
     609    /** Bitmap where one bit corresponds to a CPU.
     610     * @note Started at 20 entries.  W10 20H2 increased it to 32.  Must be
     611     *       probed by passing a big buffer to KeInitializeAffinityEx and check
     612     *       the Size afterwards. */
     613    uintptr_t               Bitmap[RT_FLEXIBLE_ARRAY_IN_NESTED_UNION];
    611614} KAFFINITY_EX;
    612615typedef KAFFINITY_EX *PKAFFINITY_EX;
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