VirtualBox

Changeset 95361 in vbox


Ignore:
Timestamp:
Jun 23, 2022 9:47:01 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151955
Message:

VMM/CPUM: Pass thru the POPCNT CPUID flag. Corrected ABM passthru. bugref:9898

File:
1 edited

Legend:

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

    r95348 r95361  
    13911391                           //| X86_CPUID_FEATURE_ECX_X2APIC - turned on later by the device if enabled.
    13921392                           | PASSTHRU_FEATURE_TODO(pConfig->enmMovBe, X86_CPUID_FEATURE_ECX_MOVBE)
    1393                            | PASSTHRU_FEATURE_TODO(pConfig->enmPopCnt, X86_CPUID_FEATURE_ECX_POPCNT)
     1393                           | PASSTHRU_FEATURE(pConfig->enmPopCnt, pHstFeat->fPopCnt, X86_CPUID_FEATURE_ECX_POPCNT)
    13941394                           //| X86_CPUID_FEATURE_ECX_TSCDEADL - not implemented yet.
    13951395                           | PASSTHRU_FEATURE_TODO(pConfig->enmAesNi, X86_CPUID_FEATURE_ECX_AES)
     
    15931593                               /* Note: This could prevent teleporting from AMD to Intel CPUs! */
    15941594                               | X86_CPUID_AMD_FEATURE_ECX_CR8L         /* expose lock mov cr0 = mov cr8 hack for guests that can use this feature to access the TPR. */
    1595                                | PASSTHRU_FEATURE_TODO(pConfig->enmAbm,      X86_CPUID_AMD_FEATURE_ECX_ABM)
     1595                               | PASSTHRU_FEATURE(pConfig->enmAbm,       pHstFeat->fAbm, X86_CPUID_AMD_FEATURE_ECX_ABM)
    15961596                               | PASSTHRU_FEATURE_TODO(pConfig->enmSse4A,     X86_CPUID_AMD_FEATURE_ECX_SSE4A)
    15971597                               | PASSTHRU_FEATURE_TODO(pConfig->enmMisAlnSse, X86_CPUID_AMD_FEATURE_ECX_MISALNSSE)
     
    28732873    AssertLogRelRCReturn(rc, rc);
    28742874
    2875     /** @cfgm{/CPUM/IsaExts/POPCNT, isaextcfg, depends}
    2876      * Whether to expose the POPCNT instructions to the guest.  For the time
    2877      * being the default is to only do this for VMs with nested paging and AMD-V or
    2878      * unrestricted guest mode.
    2879      */
    2880     rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "POPCNT", &pConfig->enmPopCnt, fNestedPagingAndFullGuestExec);
     2875    /** @cfgm{/CPUM/IsaExts/POPCNT, isaextcfg, true}
     2876     * Whether to expose the POPCNT instructions to the guest.
     2877     */
     2878    rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "POPCNT", &pConfig->enmPopCnt, CPUMISAEXTCFG_ENABLED_SUPPORTED);
    28812879    AssertLogRelRCReturn(rc, rc);
    28822880
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