VirtualBox

Changeset 71296 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Mar 10, 2018 12:53:26 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121231
Message:

NEM: Updates for build 17115 and fixes for AMD-V. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp

    r71243 r71296  
    14081408        if (fWhat & CPUMCTX_EXTRN_TR)
    14091409        {
     1410            /* AMD-V likes loading TR with in AVAIL state, whereas intel insists on BUSY.  So,
     1411               avoid to trigger sanity assertions around the code, always fix this. */
    14101412            COPY_BACK_SEG(iReg, HvX64RegisterTr,   pCtx->tr);
     1413            switch (pCtx->tr.Attr.n.u4Type)
     1414            {
     1415                case X86_SEL_TYPE_SYS_386_TSS_BUSY:
     1416                case X86_SEL_TYPE_SYS_286_TSS_BUSY:
     1417                    break;
     1418                case X86_SEL_TYPE_SYS_386_TSS_AVAIL:
     1419                    pCtx->tr.Attr.n.u4Type = X86_SEL_TYPE_SYS_386_TSS_BUSY;
     1420                    break;
     1421                case X86_SEL_TYPE_SYS_286_TSS_AVAIL:
     1422                    pCtx->tr.Attr.n.u4Type = X86_SEL_TYPE_SYS_286_TSS_BUSY;
     1423                    break;
     1424            }
    14111425            iReg++;
    14121426        }
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