VirtualBox

Changeset 26651 in vbox for trunk


Ignore:
Timestamp:
Feb 19, 2010 1:48:01 PM (15 years ago)
Author:
vboxsync
Message:

Check for raw mode cpuid workaround during relocation.

File:
1 edited

Legend:

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

    r26646 r26651  
    817817        pVCpu->cpum.s.pHyperCoreRC = MMHyperCCToRC(pVM, pVCpu->cpum.s.pHyperCoreR3);
    818818        Assert(pVCpu->cpum.s.pHyperCoreRC != NIL_RTRCPTR);
     819
     820        /*
     821         * Workaround for missing cpuid(0) patches when leaf 4 returns GuestCpuIdDef:
     822         * If we miss to patch a cpuid(0).eax then Linux tries to determine the number
     823         * of processors from (cpuid(4).eax >> 26) + 1.
     824         */
     825        if (!HWACCMR3IsAllowed(pVM))
     826            pCPUM->aGuestCpuIdStd[4].eax = 0;
    819827    }
    820828}
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