Changeset 40234 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Feb 23, 2012 2:48:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r40170 r40234 1455 1455 if (iLeaf < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdStd)) 1456 1456 pCpuId = &pVM->cpum.s.aGuestCpuIdStd[iLeaf]; 1457 else if (iLeaf - UINT32_C(0x40000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdHyper)) 1458 if ((pVCpu->CTX_SUFF(pVM)->cpum.s.aGuestCpuIdStd[1].ecx & X86_CPUID_FEATURE_ECX_HVP) != 0) 1459 pCpuId = &pVM->cpum.s.aGuestCpuIdHyper[iLeaf - UINT32_C(0x40000000)]; /* Only report if HVP bit set. */ 1457 1460 else if (iLeaf - UINT32_C(0x80000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdExt)) 1458 1461 pCpuId = &pVM->cpum.s.aGuestCpuIdExt[iLeaf - UINT32_C(0x80000000)]; … … 1884 1887 1885 1888 case CPUMCPUIDFEATURE_HVP: 1886 if (pVM->cpum.s.aGuestCpuId Ext[0].eax >= 1)1887 pVM->cpum.s.aGuestCpuId Ext[1].ecx &= ~X86_CPUID_FEATURE_ECX_HVP;1889 if (pVM->cpum.s.aGuestCpuIdStd[0].eax >= 1) 1890 pVM->cpum.s.aGuestCpuIdStd[1].ecx &= ~X86_CPUID_FEATURE_ECX_HVP; 1888 1891 break; 1889 1892
Note:
See TracChangeset
for help on using the changeset viewer.