Changeset 43600 in vbox
- Timestamp:
- Oct 10, 2012 2:48:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r43596 r43600 439 439 volatile bool fRedo; 440 440 441 #if HC_ARCH_BITS == 64442 bool fAlignment2;443 #endif444 445 441 /** Number of total sectors. */ 446 442 uint64_t cTotalSectors; … … 453 449 /** HACK: Countdown till we report a newly unmounted drive as mounted. */ 454 450 uint8_t cNotifiedMediaChange; 451 /** Exponent of logical sectors in a physical sector, number of logical sectors is 2^exp. */ 452 uint8_t cLogSectorsPerPhysicalExp; 455 453 /** The same for GET_EVENT_STATUS for mechanism */ 456 454 volatile uint32_t MediaEventStatus; … … 529 527 /** Statistics: Time to complete one request. */ 530 528 STAMPROFILE StatProfileProcessTime; 531 /** Statistics: Time to map requests into R3. */532 STAMPROFILE StatProfileMapIntoR3;533 529 /** Statistics: Amount of time to read/write data. */ 534 530 STAMPROFILE StatProfileReadWrite; 535 /** Statistics: Amount of time to destroy a list. */536 STAMPROFILE StatProfileDestroyScatterGatherList;537 531 #endif /* VBOX_WITH_STATISTICS */ 538 532 … … 3012 3006 p[102] = RT_H2LE_U16(pAhciPort->cTotalSectors >> 32); 3013 3007 p[103] = RT_H2LE_U16(pAhciPort->cTotalSectors >> 48); 3008 3009 /* valid information, more than one logical sector per physical sector, 2^cLogSectorsPerPhysicalExp logical sectors per physical sector */ 3010 if (pAhciPort->cLogSectorsPerPhysicalExp) 3011 p[106] = RT_H2LE_U16(RT_BIT(14) | RT_BIT(13) | pAhciPort->cLogSectorsPerPhysicalExp); 3014 3012 3015 3013 if (pAhciPort->fNonRotational) … … 7529 7527 N_("AHCI configuration error: failed to read \"NonRotationalMedium\" as boolean")); 7530 7528 7529 rc = CFGMR3QueryU8Def(pCfgNode, "LogicalSectorsPerPhysical", &pAhciPort->cLogSectorsPerPhysicalExp, 0); 7530 if (RT_FAILURE(rc)) 7531 return PDMDEV_SET_ERROR(pDevIns, rc, 7532 N_("AHCI configuration error: failed to read \"LogicalSectorsPerPhysical\" as integer")); 7533 if (pAhciPort->cLogSectorsPerPhysicalExp >= 16) 7534 return PDMDEV_SET_ERROR(pDevIns, rc, 7535 N_("AHCI configuration error: \"LogicalSectorsPerPhysical\" must be between 0 and 15")); 7536 7531 7537 /* There are three other identification strings for CD drives used for INQUIRY */ 7532 7538 if (pAhciPort->fATAPI) … … 8054 8060 PDMDevHlpSTAMRegisterF(pDevIns, &pAhciPort->StatProfileProcessTime, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 8055 8061 "Amount of time to process one request.", "/Devices/SATA%d/Port%d/ProfileProcessTime", iInstance, i); 8056 PDMDevHlpSTAMRegisterF(pDevIns, &pAhciPort->StatProfileMapIntoR3, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL,8057 "Amount of time to map the guest buffers into R3.", "/Devices/SATA%d/Port%d/ProfileMapIntoR3", iInstance, i);8058 8062 PDMDevHlpSTAMRegisterF(pDevIns, &pAhciPort->StatProfileReadWrite, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 8059 8063 "Amount of time for the read/write operation to complete.", "/Devices/SATA%d/Port%d/ProfileReadWrite", iInstance, i); 8060 PDMDevHlpSTAMRegisterF(pDevIns, &pAhciPort->StatProfileDestroyScatterGatherList, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL,8061 "Amount of time to destroy the scatter gather list and free associated resources.", "/Devices/SATA%d/Port%d/ProfileDestroyScatterGatherList", iInstance, i);8062 8064 #endif 8063 8065
Note:
See TracChangeset
for help on using the changeset viewer.