VirtualBox

Changeset 23699 in vbox for trunk/include


Ignore:
Timestamp:
Oct 12, 2009 3:01:05 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53415
Message:

Added SUP_IOCTL_VT_CAPS to get VT-x/AMD-V caps that can only be checked in kernel mode.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwacc_vmx.h

    r23219 r23699  
    398398/** @} */
    399399
     400
     401/** @name VT-x capability qword
     402 * @{
     403 */
     404#pragma pack(1)
     405typedef union
     406{
     407    struct
     408    {
     409        uint32_t        disallowed0;
     410        uint32_t        allowed1;
     411    } n;
     412    uint64_t            u;
     413} VMX_CAPABILITY;
     414#pragma pack()
     415/** @} */
    400416
    401417/** @name VMX Basic Exit Reasons.
  • trunk/include/VBox/sup.h

    r22615 r23699  
    293293/** @} */
    294294
     295/** SUPR3QueryVTCaps capability flags
     296 * @{
     297 */
     298#define SUPVTCAPS_AMD_V             RT_BIT(0)
     299#define SUPVTCAPS_VT_X              RT_BIT(1)
     300#define SUPVTCAPS_NESTED_PAGING     RT_BIT(2)
     301/** @} */
    295302
    296303/**
     
    934941SUPR3DECL(int) SUPR3QueryVTxSupported(void);
    935942
     943
     944/**
     945 * Return VT-x/AMD-V capabilities
     946 *   
     947 * @returns VINF_SUCCESS if supported, error code indicating why if not.
     948 * @param   pCaps       Pointer to capability dword (out)
     949 */
     950SUPR3DECL(int) SUPR3QueryVTCaps(uint32_t *pCaps);
    936951
    937952/** @} */
     
    10001015SUPR0DECL(int) SUPR0PageFree(PSUPDRVSESSION pSession, RTR3PTR pvR3);
    10011016SUPR0DECL(int) SUPR0GipMap(PSUPDRVSESSION pSession, PRTR3PTR ppGipR3, PRTHCPHYS pHCPhysGip);
     1017SUPR0DECL(int) SUPR0QueryVTCaps(PSUPDRVSESSION pSession, uint32_t *pCaps);
    10021018SUPR0DECL(int) SUPR0GipUnmap(PSUPDRVSESSION pSession);
    10031019SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...);
Note: See TracChangeset for help on using the changeset viewer.

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