- Timestamp:
- Jul 18, 2023 10:10:57 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r99775 r100625 2267 2267 2268 2268 /* Cpuid 0x80000008: 2269 * AMD: E BX, EDX - reserved2270 * E AX: Virtual/Physical/Guest address Size2269 * AMD: EAX: Long Mode Size Identifiers 2270 * EBX: Extended Feature Identifiers 2271 2271 * ECX: Number of cores + APICIdCoreIdSize 2272 * EDX: RDPRU Register Identifier Range 2272 2273 * Intel: EAX: Virtual/Physical address Size 2273 2274 * EBX, ECX, EDX - reserved … … 2277 2278 * We only expose the virtual+pysical address size to the guest atm. 2278 2279 * On AMD we set the core count, but not the apic id stuff as we're 2279 * currently not doing the apic id assignments in a comp latible manner.2280 * currently not doing the apic id assignments in a compatible manner. 2280 2281 */ 2281 2282 uSubLeaf = 0; … … 2283 2284 { 2284 2285 pCurLeaf->uEax &= UINT32_C(0x0000ffff); /* Virtual & physical address sizes only. */ 2285 pCurLeaf->uEbx = 0; /* reserved - [12] == IBPB */ 2286 if ( pCpum->GuestFeatures.enmCpuVendor == CPUMCPUVENDOR_AMD 2287 || pCpum->GuestFeatures.enmCpuVendor == CPUMCPUVENDOR_HYGON) 2288 { 2289 /* Expose XSaveErPtr aka RstrFpErrPtrs to guest. */ 2290 pCurLeaf->uEbx &= X86_CPUID_AMD_EFEID_EBX_XSAVE_ER_PTR; /* reserved - [12] == IBPB */ 2291 } 2292 else 2293 pCurLeaf->uEbx = 0; /* reserved */ 2294 2286 2295 pCurLeaf->uEdx = 0; /* reserved */ 2287 2296 … … 4994 5003 DBGFREGSUBFIELD_RO("CLZERO\0" "Clear zero instruction (cacheline)", 0, 1, 0), 4995 5004 DBGFREGSUBFIELD_RO("IRPerf\0" "Instructions retired count support", 1, 1, 0), 4996 DBGFREGSUBFIELD_RO("XSaveErPtr\0" "Save/restore error pointers (FXSAVE/RSTOR *)",2, 1, 0),5005 DBGFREGSUBFIELD_RO("XSaveErPtr\0" "Save/restore error pointers (FXSAVE/RSTOR)", 2, 1, 0), 4997 5006 DBGFREGSUBFIELD_RO("RDPRU\0" "RDPRU instruction", 4, 1, 0), 4998 5007 DBGFREGSUBFIELD_RO("MCOMMIT\0" "MCOMMIT instruction", 8, 1, 0),
Note:
See TracChangeset
for help on using the changeset viewer.