Changeset 98827 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Mar 3, 2023 12:01:42 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156149
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r98703 r98827 1049 1049 CPUMISAEXTCFG enmRdSeed; 1050 1050 CPUMISAEXTCFG enmSha; 1051 CPUMISAEXTCFG enmAdx; 1051 1052 CPUMISAEXTCFG enmCLFlushOpt; 1052 1053 CPUMISAEXTCFG enmFsGsBase; … … 1846 1847 //| RT_BIT(17) - reserved 1847 1848 | PASSTHRU_FEATURE_TODO(pConfig->enmRdSeed, X86_CPUID_STEXT_FEATURE_EBX_RDSEED) 1848 //| X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT(19)1849 | PASSTHRU_FEATURE(pConfig->enmAdx, pHstFeat->fAdx, X86_CPUID_STEXT_FEATURE_EBX_ADX) 1849 1850 //| X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT(20) 1850 1851 //| RT_BIT(21) - reserved … … 1889 1890 PORTABLE_DISABLE_FEATURE_BIT( 1, pCurLeaf->uEbx, AVX512F, X86_CPUID_STEXT_FEATURE_EBX_AVX512F); 1890 1891 PORTABLE_DISABLE_FEATURE_BIT_CFG(1, pCurLeaf->uEbx, RDSEED, X86_CPUID_STEXT_FEATURE_EBX_RDSEED, pConfig->enmRdSeed); 1892 PORTABLE_DISABLE_FEATURE_BIT_CFG(1, pCurLeaf->uEbx, ADX, X86_CPUID_STEXT_FEATURE_EBX_ADX, pConfig->enmAdx); 1891 1893 PORTABLE_DISABLE_FEATURE_BIT_CFG(1, pCurLeaf->uEbx, CLFLUSHOPT, X86_CPUID_STEXT_FEATURE_EBX_RDSEED, pConfig->enmCLFlushOpt); 1892 1894 PORTABLE_DISABLE_FEATURE_BIT( 1, pCurLeaf->uEbx, AVX512PF, X86_CPUID_STEXT_FEATURE_EBX_AVX512PF); … … 1912 1914 if (pConfig->enmRdSeed == CPUMISAEXTCFG_ENABLED_ALWAYS) 1913 1915 pCurLeaf->uEbx |= X86_CPUID_STEXT_FEATURE_EBX_RDSEED; 1916 if (pConfig->enmAdx == CPUMISAEXTCFG_ENABLED_ALWAYS) 1917 pCurLeaf->uEbx |= X86_CPUID_STEXT_FEATURE_EBX_ADX; 1914 1918 if (pConfig->enmCLFlushOpt == CPUMISAEXTCFG_ENABLED_ALWAYS) 1915 1919 pCurLeaf->uEbx |= X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT; … … 2749 2753 "|RDRAND" 2750 2754 "|RDSEED" 2755 "|ADX" 2751 2756 "|CLFLUSHOPT" 2752 2757 "|SHA" … … 2878 2883 */ 2879 2884 rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "RDSEED", &pConfig->enmRdSeed, fNestedPagingAndFullGuestExec); 2885 AssertLogRelRCReturn(rc, rc); 2886 2887 /** @cfgm{/CPUM/IsaExts/ADX, isaextcfg, depends} 2888 * Whether to expose the ADX instructions to the guest. For the time being 2889 * the default is to only do this for VMs with nested paging and AMD-V or 2890 * unrestricted guest mode. 2891 */ 2892 rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "ADX", &pConfig->enmAdx, fNestedPagingAndFullGuestExec); 2880 2893 AssertLogRelRCReturn(rc, rc); 2881 2894
Note:
See TracChangeset
for help on using the changeset viewer.