Changeset 87777 in vbox
- Timestamp:
- Feb 17, 2021 1:48:25 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r87594 r87777 1301 1301 struct TRPM s; 1302 1302 #endif 1303 uint8_t padding[ 5248]; /* multiple of 64 */1303 uint8_t padding[2048]; /* multiple of 64 */ 1304 1304 } trpm; 1305 1305 … … 1463 1463 1464 1464 /** Padding for aligning the structure size on a page boundrary. */ 1465 uint8_t abAlignment2[ 4568- sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT];1465 uint8_t abAlignment2[3672 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT]; 1466 1466 1467 1467 /* ---- end small stuff ---- */ -
trunk/include/VBox/vmm/vm.mac
r87330 r87777 124 124 .pgm resb 21120 125 125 .hm resb 5504 126 .trpm resb 5248126 .trpm resb 2048 127 127 .selm resb 768 128 128 .mm resb 192 … … 140 140 .R0Stats resb 64 141 141 142 .abAlignment2 resb 4568 - RTR0PTR_CB * VMM_MAX_CPU_COUNT 143 144 alignb RTR0PTR_CB * VMM_MAX_CPU_COUNT ; ASSUMES VMM_MAX_CPU_COUNT is a power of two. 142 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 4095) & ~4095) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1 145 143 .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT 146 144 alignb 4096 -
trunk/src/VBox/VMM/VMMR3/TRPM.cpp
r87040 r87777 162 162 * Statistics. 163 163 */ 164 #ifdef VBOX_WITH_STATISTICS165 rc = MMHyperAlloc(pVM, sizeof(STAMCOUNTER) * 256, sizeof(STAMCOUNTER), MM_TAG_TRPM, (void **)&pVM->trpm.s.paStatForwardedIRQR3);166 AssertRCReturn(rc, rc);167 164 for (unsigned i = 0; i < 256; i++) 168 STAMR3RegisterF(pVM, &pVM->trpm.s.paStatForwardedIRQR3[i], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, "Forwarded interrupts.", 169 i < 0x20 ? "/TRPM/ForwardRaw/TRAP/%02X" : "/TRPM/ForwardRaw/IRQ/%02X", i); 170 #endif 165 STAMR3RegisterF(pVM, &pVM->trpm.s.aStatForwardedIRQ[i], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, 166 "Forwarded interrupts.", i < 0x20 ? "/TRPM/ForwardRaw/TRAP/%02X" : "/TRPM/ForwardRaw/IRQ/%02X", i); 171 167 172 168 return 0; … … 399 395 return VBOXSTRICTRC_TODO(rcStrict); 400 396 } 401 STAM_COUNTER_INC(&pVM->trpm.s. paStatForwardedIRQR3[u8Interrupt]);397 STAM_COUNTER_INC(&pVM->trpm.s.aStatForwardedIRQ[u8Interrupt]); 402 398 } 403 399 else -
trunk/src/VBox/VMM/include/TRPMInternal.h
r82968 r87777 45 45 { 46 46 #ifdef VBOX_WITH_STATISTICS 47 /** Statistics for interrupt handlers (allocated on the hypervisor heap) - R3 48 * pointer. */ 49 R3PTRTYPE(PSTAMCOUNTER) paStatForwardedIRQR3; 47 /** Statistics for interrupt handlers. */ 48 STAMCOUNTER aStatForwardedIRQ[256]; 49 #else 50 uint64_t uWhatever; 50 51 #endif 51 uint64_t u64Dummy;52 52 } TRPM; 53 53
Note:
See TracChangeset
for help on using the changeset viewer.