VirtualBox

Changeset 6171 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2007 3:41:23 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26927
Message:

workaround for a missing cpuid(0).eax patch

File:
1 edited

Legend:

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

    r5999 r6171  
    317317         i < RT_ELEMENTS(pCPUM->aGuestCpuIdExt); i++)
    318318        pCPUM->aGuestCpuIdExt[i] = pCPUM->GuestCpuIdDef;
     319
     320    /*
     321     * Workaround for missing cpuid(0) patches: If we miss to patch a cpuid(0).eax then
     322     * Linux tries to determine the number of processors from (cpuid(4).eax >> 26) + 1.
     323     * We don't support more than 1 processor.
     324     */
     325    pCPUM->aGuestCpuIdStd[4].eax = 0;
    319326
    320327    /*
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