VirtualBox

Changeset 26646 in vbox for trunk


Ignore:
Timestamp:
Feb 19, 2010 12:29:28 PM (15 years ago)
Author:
vboxsync
Message:

CPUM: better topology info for Intel CPUs

File:
1 edited

Legend:

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

    r26263 r26646  
    564564    pCPUM->aGuestCpuIdStd[1].ebx &= 0x0000ffff;
    565565#ifdef VBOX_WITH_MULTI_CORE
    566     if (    pVM->cCpus > 1
    567         &&  pCPUM->enmGuestCpuVendor != CPUMCPUVENDOR_SYNTHETIC)
     566    if (pCPUM->enmGuestCpuVendor != CPUMCPUVENDOR_SYNTHETIC)
    568567    {
    569568        /* If CPUID Fn0000_0001_EDX[HTT] = 1 then LogicalProcessorCount is the number of threads per CPU core times the number of CPU cores per processor */
     
    735734         i < RT_ELEMENTS(pCPUM->aGuestCpuIdExt); i++)
    736735        pCPUM->aGuestCpuIdExt[i] = pCPUM->GuestCpuIdDef;
    737 
    738     /*
    739      * Workaround for missing cpuid(0) patches when leaf 4 returns GuestCpuIdDef:
    740      * If we miss to patch a cpuid(0).eax then Linux tries to determine the number
    741      * of processors from (cpuid(4).eax >> 26) + 1.
    742      */
    743     if (pVM->cCpus == 1)
    744         pCPUM->aGuestCpuIdStd[4].eax = 0;
    745736
    746737    /*
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