VirtualBox

Changeset 88290 in vbox for trunk/include


Ignore:
Timestamp:
Mar 25, 2021 11:54:08 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143501
Message:

Intel IOMMU: bugref:9967 PDM: Added CPUMGetGuestAddrWidths and PDM interface for getting number of physical and linear address bits supported by the guest. Will be used by upcoming changes to Intel IOMMU.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r87523 r88290  
    14811481VMMDECL(CPUMCPUVENDOR)  CPUMGetGuestCpuVendor(PVM pVM);
    14821482VMMDECL(CPUMMICROARCH)  CPUMGetGuestMicroarch(PCVM pVM);
     1483VMMDECL(void)           CPUMGetGuestAddrWidths(PCVM pVM, uint8_t *pcPhysAddrWidth, uint8_t *pcLinearAddrWidth);
    14831484VMMDECL(CPUMCPUVENDOR)  CPUMGetHostCpuVendor(PVM pVM);
    14841485VMMDECL(CPUMMICROARCH)  CPUMGetHostMicroarch(PCVM pVM);
  • trunk/include/VBox/vmm/pdmdev.h

    r88153 r88290  
    23492349
    23502350/** Current PDMDEVHLPR3 version number. */
    2351 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 46, 0)
     2351#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 47, 0)
    23522352
    23532353/**
     
    42484248    DECLR3CALLBACKMEMBER(CPUMMICROARCH, pfnCpuGetGuestMicroarch,(PPDMDEVINS pDevIns));
    42494249
     4250    /**
     4251     * Get the number of physical and linear address bits supported by the guest.
     4252     *
     4253     * @param   pDevIns             The device instance.
     4254     * @param   pcPhysAddrWidth     Where to store the number of physical address bits
     4255     *                              supported by the guest.
     4256     * @param   pcLinearAddrWidth   Where to store the number of linear address bits
     4257     *                              supported by the guest.
     4258     */
     4259    DECLR3CALLBACKMEMBER(void, pfnCpuGetGuestAddrWidths,(PPDMDEVINS pDevIns, uint8_t *pcPhysAddrWidth,
     4260                                                         uint8_t *pcLinearAddrWidth));
     4261
    42504262    /** Space reserved for future members.
    42514263     * @{ */
     
    66376649{
    66386650    return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestMicroarch(pDevIns);
     6651}
     6652
     6653/**
     6654 * @copydoc PDMDEVHLPR3::pfnCpuGetGuestAddrWidths
     6655 */
     6656DECLINLINE(void) PDMDevHlpCpuGetGuestAddrWidths(PPDMDEVINS pDevIns, uint8_t *pcPhysAddrWidth, uint8_t *pcLinearAddrWidth)
     6657{
     6658    pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestAddrWidths(pDevIns, pcPhysAddrWidth, pcLinearAddrWidth);
    66396659}
    66406660
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