VirtualBox

Changeset 89307 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 27, 2021 6:16:37 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144654
Message:

Intel IOMMU: bugref:9967 Fix second-level large page support bitmask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp

    r89306 r89307  
    19221922                                        if (dmarDrLegacyModeIsAwValid(pThis, &CtxEntry))
    19231923                                        {
     1924
    19241925                                            return VERR_NOT_IMPLEMENTED;
    19251926                                        }
     
    31433144        uint8_t const fFl1gp   = 1;                                /* First-Level 1GB pages support. */
    31443145        uint8_t const fFl5lp   = 1;                                /* First-level 5-level paging support (PML5E). */
    3145         uint8_t const fSl2mp   = fSlts & 1;                        /* Second-Level 2MB pages support. */
    3146         uint8_t const fSl2gp   = fSlts & 1;                        /* Second-Level 1GB pages support. */
    3147         uint8_t const fSllps   = fSl2mp                            /* Second-Level large page Support. */
    3148                                | ((fSl2mp & fFl1gp) & RT_BIT(1));
     3146        uint8_t const fSl2mp   = 1;                                /* Second-Level 2MB pages support. */
     3147        uint8_t const fSl2gp   = fSl2mp & 1;                       /* Second-Level 1GB pages support. */
     3148        uint8_t const fSllps   = fSl2mp | (fSl2gp << 1);           /* Second-Level large page Support. */
    31493149        uint8_t const fMamv    = (fSl2gp ? X86_PAGE_1G_SHIFT       /* Maximum address mask value (for 2nd-level invalidations). */
    31503150                                         : X86_PAGE_2M_SHIFT)
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