VirtualBox

Changeset 24852 in vbox for trunk


Ignore:
Timestamp:
Nov 22, 2009 4:24:38 AM (15 years ago)
Author:
vboxsync
Message:

CPUM.cpp/cpumR3LoadExec: Hack for missing G=1 in csHid on AMD-V. #4481.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r24850 r24852  
    19481948                if (uVersion >= CPUM_SAVED_STATE_VERSION_VER3_0)
    19491949                    SSMR3GetMem(pSSM, &pVM->aCpus[i].cpum.s.GuestMsr, sizeof(pVM->aCpus[i].cpum.s.GuestMsr));
     1950
     1951                /*
     1952                 * HACK ALERT! Workaround for missing granularity flag in CS on
     1953                 *             AMD-v.  This will cause trouble if the host now
     1954                 *             is using VT-x (teleporting, cold migration).
     1955                 * May consider moving this into SVM_READ_SELREG or there about.
     1956                 */
     1957                if (    !pVM->aCpus[i].cpum.s.Guest.csHid.Attr.n.u1Granularity
     1958                    &&   pVM->aCpus[i].cpum.s.Guest.csHid.u32Limit > UINT16_MAX)
     1959                    pVM->aCpus[i].cpum.s.Guest.csHid.Attr.n.u1Granularity = 1;
    19501960            }
    19511961        }
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