- Timestamp:
- Mar 25, 2021 11:54:08 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r87523 r88290 1481 1481 VMMDECL(CPUMCPUVENDOR) CPUMGetGuestCpuVendor(PVM pVM); 1482 1482 VMMDECL(CPUMMICROARCH) CPUMGetGuestMicroarch(PCVM pVM); 1483 VMMDECL(void) CPUMGetGuestAddrWidths(PCVM pVM, uint8_t *pcPhysAddrWidth, uint8_t *pcLinearAddrWidth); 1483 1484 VMMDECL(CPUMCPUVENDOR) CPUMGetHostCpuVendor(PVM pVM); 1484 1485 VMMDECL(CPUMMICROARCH) CPUMGetHostMicroarch(PCVM pVM); -
trunk/include/VBox/vmm/pdmdev.h
r88153 r88290 2349 2349 2350 2350 /** Current PDMDEVHLPR3 version number. */ 2351 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 4 6, 0)2351 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 47, 0) 2352 2352 2353 2353 /** … … 4248 4248 DECLR3CALLBACKMEMBER(CPUMMICROARCH, pfnCpuGetGuestMicroarch,(PPDMDEVINS pDevIns)); 4249 4249 4250 /** 4251 * Get the number of physical and linear address bits supported by the guest. 4252 * 4253 * @param pDevIns The device instance. 4254 * @param pcPhysAddrWidth Where to store the number of physical address bits 4255 * supported by the guest. 4256 * @param pcLinearAddrWidth Where to store the number of linear address bits 4257 * supported by the guest. 4258 */ 4259 DECLR3CALLBACKMEMBER(void, pfnCpuGetGuestAddrWidths,(PPDMDEVINS pDevIns, uint8_t *pcPhysAddrWidth, 4260 uint8_t *pcLinearAddrWidth)); 4261 4250 4262 /** Space reserved for future members. 4251 4263 * @{ */ … … 6637 6649 { 6638 6650 return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestMicroarch(pDevIns); 6651 } 6652 6653 /** 6654 * @copydoc PDMDEVHLPR3::pfnCpuGetGuestAddrWidths 6655 */ 6656 DECLINLINE(void) PDMDevHlpCpuGetGuestAddrWidths(PPDMDEVINS pDevIns, uint8_t *pcPhysAddrWidth, uint8_t *pcLinearAddrWidth) 6657 { 6658 pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestAddrWidths(pDevIns, pcPhysAddrWidth, pcLinearAddrWidth); 6639 6659 } 6640 6660 -
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r87766 r88290 1074 1074 { 1075 1075 return pVM->cpum.s.GuestFeatures.enmMicroarch; 1076 } 1077 1078 1079 /** 1080 * Gets the maximum number of physical and linear address bits supported by the 1081 * guest. 1082 * 1083 * @param pVM The cross context VM structure. 1084 * @param pcPhysAddrWidth Where to store the physical address width. 1085 * @param pcLinearAddrWidth Where to store the linear address width. 1086 */ 1087 VMMDECL(void) CPUMGetGuestAddrWidths(PCVM pVM, uint8_t *pcPhysAddrWidth, uint8_t *pcLinearAddrWidth) 1088 { 1089 AssertPtr(pVM); 1090 AssertReturnVoid(pcPhysAddrWidth); 1091 AssertReturnVoid(pcLinearAddrWidth); 1092 *pcPhysAddrWidth = pVM->cpum.s.GuestFeatures.cMaxPhysAddrWidth; 1093 *pcLinearAddrWidth = pVM->cpum.s.GuestFeatures.cMaxLinearAddrWidth; 1076 1094 } 1077 1095 -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r88153 r88290 973 973 Log(("pdmR3DevHlp_CpuGetGuestMicroarch: caller='%s'/%d: returns %u\n", pDevIns->pReg->szName, pDevIns->iInstance, enmMicroarch)); 974 974 return enmMicroarch; 975 } 976 977 978 /** @interface_method_impl{PDMDEVHLPR3,pfnCpuGetGuestAddrWidths} */ 979 static DECLCALLBACK(void) pdmR3DevHlp_CpuGetGuestAddrWidths(PPDMDEVINS pDevIns, uint8_t *pcPhysAddrWidth, 980 uint8_t *pcLinearAddrWidth) 981 { 982 PDMDEV_ASSERT_DEVINS(pDevIns); 983 PVM pVM = pDevIns->Internal.s.pVMR3; 984 LogFlow(("pdmR3DevHlp_CpuGetGuestAddrWidths: caller='%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance)); 985 AssertPtrReturnVoid(pcPhysAddrWidth); 986 AssertPtrReturnVoid(pcLinearAddrWidth); 987 988 CPUMGetGuestAddrWidths(pVM, pcPhysAddrWidth, pcLinearAddrWidth); 989 990 Log(("pdmR3DevHlp_CpuGetGuestAddrWidths: caller='%s'/%d: returns void\n", pDevIns->pReg->szName, pDevIns->iInstance)); 975 991 } 976 992 … … 4394 4410 pdmR3DevHlp_PhysBulkReleasePageMappingLocks, 4395 4411 pdmR3DevHlp_CpuGetGuestMicroarch, 4412 pdmR3DevHlp_CpuGetGuestAddrWidths, 4396 4413 0, 4397 4414 0, … … 4741 4758 pdmR3DevHlp_PhysBulkReleasePageMappingLocks, 4742 4759 pdmR3DevHlp_CpuGetGuestMicroarch, 4760 pdmR3DevHlp_CpuGetGuestAddrWidths, 4743 4761 0, 4744 4762 0, … … 5245 5263 pdmR3DevHlp_PhysBulkReleasePageMappingLocks, 5246 5264 pdmR3DevHlp_CpuGetGuestMicroarch, 5265 pdmR3DevHlp_CpuGetGuestAddrWidths, 5247 5266 0, 5248 5267 0,
Note:
See TracChangeset
for help on using the changeset viewer.