VirtualBox

Changeset 26991 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 3, 2010 2:19:00 PM (15 years ago)
Author:
vboxsync
Message:

CPUM: skip h/w threads count in leaf 1 for UP

File:
1 edited

Legend:

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

    r26990 r26991  
    564564    pCPUM->aGuestCpuIdStd[1].ebx &= 0x0000ffff;
    565565#ifdef VBOX_WITH_MULTI_CORE
    566     if (pCPUM->enmGuestCpuVendor != CPUMCPUVENDOR_SYNTHETIC)
     566    if (pCPUM->enmGuestCpuVendor != CPUMCPUVENDOR_SYNTHETIC && pVM->cCpus > 1)
    567567    {
    568568        /* 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 */
    569569        pCPUM->aGuestCpuIdStd[1].ebx |= (pVM->cCpus << 16);
    570         if (pVM->cCpus > 1)
    571             pCPUM->aGuestCpuIdStd[1].edx |= X86_CPUID_FEATURE_EDX_HTT;  /* necessary for hyper-threading *or* multi-core CPUs */
     570        pCPUM->aGuestCpuIdStd[1].edx |= X86_CPUID_FEATURE_EDX_HTT;  /* necessary for hyper-threading *or* multi-core CPUs */
    572571    }
    573572#endif
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