VirtualBox

Changeset 42504 in vbox


Ignore:
Timestamp:
Aug 1, 2012 12:35:11 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR3/CPUMR3: VIA CpuId comments.

File:
1 edited

Legend:

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

    r42486 r42504  
    11161116     * Intel: Cache and TLB information
    11171117     * AMD:   Reserved
     1118     * VIA:   Reserved
    11181119     * Safe to expose; restrict the number of calls to 1 for the portable case.
    11191120     */
     
    11301131     *        ECX, EDX - Processor Serial Number if available, otherwise reserved
    11311132     * AMD:   Reserved
     1133     * VIA:   Reserved
    11321134     * Safe to expose
    11331135     */
     
    11431145     *        Note: Depends on the ECX input! -> Feeling rather lazy now, so we just return 0
    11441146     * AMD:   Reserved
     1147     * VIA:   Reserved
    11451148     * Safe to expose, except for EAX:
    11461149     *      Bits 25-14: Maximum number of addressable IDs for logical processors sharing this cache (see note)**
     
    11511154    pCPUM->aGuestCpuIdStd[4].eax = pCPUM->aGuestCpuIdStd[4].ebx = 0;
    11521155#ifdef VBOX_WITH_MULTI_CORE
    1153     if (    pVM->cCpus > 1
    1154         &&  pVM->cpum.s.enmGuestCpuVendor == CPUMCPUVENDOR_INTEL)
     1156    if (   pVM->cCpus > 1
     1157        && pVM->cpum.s.enmGuestCpuVendor == CPUMCPUVENDOR_INTEL)
    11551158    {
    11561159        AssertReturn(pVM->cCpus <= 64, VERR_TOO_MANY_CPUS);
     
    11671170     *        EAX, EBX - Smallest and largest monitor line size
    11681171     *        ECX - extensions (ignored for now)
     1172     * VIA:   Reserved
    11691173     * Safe to expose
    11701174     */
     
    12051209     * AMD:   0x800000005 L1 cache information
    12061210     *        0x800000006 L2/L3 cache information
     1211     * VIA:   0x800000005 TLB and L1 cache information
     1212     *        0x800000006 L2 cache information
    12071213     */
    12081214
    12091215    /* Cpuid 0x800000007:
     1216     * Intel:             Reserved
    12101217     * AMD:               EAX, EBX, ECX - reserved
    12111218     *                    EDX: Advanced Power Management Information
    1212      * Intel:             Reserved
     1219     * VIA:               Reserved
    12131220     */
    12141221    if (pCPUM->aGuestCpuIdExt[0].eax >= UINT32_C(0x80000007))
     
    12431250
    12441251    /* Cpuid 0x800000008:
     1252     * Intel:             EAX: Virtual/Physical address Size
     1253     *                    EBX, ECX, EDX - reserved
    12451254     * AMD:               EBX, EDX - reserved
    12461255     *                    EAX: Virtual/Physical/Guest address Size
    12471256     *                    ECX: Number of cores + APICIdCoreIdSize
    1248      * Intel:             EAX: Virtual/Physical address Size
     1257     * VIA:               EAX: Virtual/Physical address size
    12491258     *                    EBX, ECX, EDX - reserved
    12501259     */
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