VirtualBox

Changeset 91651 in vbox


Ignore:
Timestamp:
Oct 10, 2021 12:23:28 AM (3 years ago)
Author:
vboxsync
Message:

iprt/nt/hyperv.h,vid.h: Some updates for build 22000. bugref:10118

Location:
trunk/include/iprt/nt
Files:
2 edited

Legend:

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

    r84509 r91651  
    351351{
    352352    HvPartitionPropertyPrivilegeFlags = 0x00010000,
     353    HvPartitionPropertySyntheticProcessorFeaturesBanks, /**< Read by WHvApi::Capabilities::GetSyntheticProcessorFeaturesBanks (build 22000) */
    353354
    354355    HvPartitionPropertyCpuReserve = 0x00020001,
     
    360361    HvPartitionPropertyEmulatedTimerControl,        /**< @note Fails on exo partition (build 17134). */
    361362    HvPartitionPropertyPmTimerAssist,               /**< @note Fails on exo partition (build 17134). */
     363    HvPartitionPropertyUnknown30003,                /**< @note WHvSetupPartition writes this (build 22000). */
     364    HvPartitionPropertyUnknown30004,                /**< ? */
     365    HvPartitionPropertyUnknown30005,                /**< WHvPartitionPropertyCodeReferenceTime maps to this (build 22000) */
    362366
    363367    HvPartitionPropertyDebugChannelId = 0x00040000, /**< @note Hangs system on exo partition hangs (build 17134). */
     
    369373    HvPartitionPropertyUnknown50004,                /**< On exo partition (build 17134), initial value zero. */
    370374    HvPartitionPropertyUnknown50005,                /**< On exo partition (build 17134), initial value one. */
    371     HvPartitionPropertyUnknown50006,                /**< On exo partition (build 17134), initial value zero. */
     375    HvPartitionPropertyUnknown50006,                /**< On exo partition (build 17134), initial value zero.
     376                                                     * @note build 22000/w11-ga fends this off in VID.SYS. */
     377    HvPartitionPropertyUnknown50007,
     378    HvPartitionPropertyUnknown50008,
     379    HvPartitionPropertyUnknown50009,
     380    HvPartitionPropertyUnknown5000a,
     381    HvPartitionPropertyUnknown5000b,
     382    HvPartitionPropertyUnknown5000c,
     383    HvPartitionPropertyUnknown5000d,
     384    HvPartitionPropertyUnknown5000e,
     385    HvPartitionPropertyUnknown5000f,
     386    HvPartitionPropertyUnknown50010,
     387    HvPartitionPropertyUnknown50012,
     388    HvPartitionPropertyUnknown50013,                /**< Set by WHvSetupPartition (build 22000) */
     389    HvPartitionPropertyUnknown50014,
     390    HvPartitionPropertyUnknown50015,
     391    HvPartitionPropertyUnknown50016,
     392    HvPartitionPropertyUnknown50017,                /**< Set by WHvSetupPartition (build 22000) */
    372393
    373394    HvPartitionPropertyProcessorVendor = 0x00060000,
     
    378399    HvPartitionPropertyUnknown60005,                /**< On exo partition (build 17134), initial value 0x603. */
    379400    HvPartitionPropertyUnknown60006,                /**< On exo partition (build 17134), initial value 0x2c. */
     401    HvPartitionPropertyUnknown60007,                /**< WHvSetupPartition reads this (build 22000). */
     402    HvPartitionPropertyUnknown60008,                /**< WHvSetupPartition reads this (build 22000). */
     403    HvPartitionPropertyProcessorClockFrequency,     /**< Read by WHvApi::Capabilities::GetProcessorClockFrequency (build 22000). */
     404    HvPartitionPropertyProcessorFeaturesBank0,      /**< Read by WHvApi::Capabilities::GetProcessorFeaturesBanks (build 22000). */
     405    HvPartitionPropertyProcessorFeaturesBank1,      /**< Read by WHvApi::Capabilities::GetProcessorFeaturesBanks (build 22000). */
    380406
    381407    HvPartitionPropertyGuestOsId = 0x00070000,      /**< @since v4 */
  • trunk/include/iprt/nt/vid.h

    r82968 r91651  
    147147 * The partition ID is the numeric identifier used when making hypercalls to the
    148148 * hypervisor.
     149 *
     150 * @note Starting with Windows 11 (or possibly earlier), this does not work on
     151 *       Exo partition as created by WHvCreatePartition.  It returns a
     152 *       STATUS_NOT_IMPLEMENTED as the I/O control code is not allowed through.
     153 *       All partitions has an ID though, so just pure annoying blockheadedness
     154 *       sprung upon us w/o any chance of doing a memory managment rewrite in
     155 *       time.
    149156 */
    150157DECLIMPORT(BOOL) VIDAPI VidGetHvPartitionId(VID_PARTITION_HANDLE hPartition, HV_PARTITION_ID *pidPartition);
     158
     159/**
     160 * Get a partition property.
     161 *
     162 * @returns Success indicator (details in LastErrorValue).
     163 * @param   hPartition  The partition handle.
     164 * @param   enmProperty The property to get.
     165 * @param   puValue     Where to return the property value.
     166 */
     167DECLIMPORT(BOOL) VIDAPI VidGetPartitionProperty(VID_PARTITION_HANDLE hPartition, HV_PARTITION_PROPERTY_CODE enmProperty,
     168                                                PHV_PARTITION_PROPERTY puValue);
     169
     170/**
     171 * @copydoc VidGetPartitionProperty
     172 * @note Currently (Windows 11 GA) identical to VidGetPartitionProperty.
     173 */
     174DECLIMPORT(BOOL) VIDAPI VidGetExoPartitionProperty(VID_PARTITION_HANDLE hPartition, HV_PARTITION_PROPERTY_CODE enmProperty,
     175                                                   PHV_PARTITION_PROPERTY puValue);
    151176
    152177/**
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