Changeset 55275 in vbox for trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
- Timestamp:
- Apr 15, 2015 10:57:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r54995 r55275 409 409 if (!pThis->fHasMissedHB && uIntervalNs >= pThis->u64HeartbeatInterval) 410 410 { 411 LogRel(("VMMDev: HeartBeatCheckTimer: Guest seems to be unresponsive. Last heartbeat received %RU64 sec ago\n",411 LogRel(("VMMDev: HeartBeatCheckTimer: Guest seems to be unresponsive. Last heartbeat received %RU64 seconds ago\n", 412 412 uIntervalNs / RT_NS_1SEC_64)); 413 413 ASMAtomicWriteBool(&pThis->fHasMissedHB, true); … … 440 440 rc = vmmDevHeartbeatTimerReset(pThis); 441 441 if (RT_SUCCESS(rc)) 442 { 443 /** @todo r=ramshankar: Why are we using 500000000 here? The comment in 444 * u64HeartbeatInterval doesn't indicate anything special. */ 445 LogRel(("VMMDev: Heartbeat checking timer set to trigger every %RU64 sec\n", pThis->u64HeartbeatInterval / 500000000)); 446 } 442 LogRel(("VMMDev: Heartbeat checking timer set to trigger every %RU64 milliseconds\n", 443 pThis->u64HeartbeatTimeout / RT_NS_1MS)); 447 444 else 448 445 LogRel(("VMMDev: Cannot create heartbeat check timer, rc=%Rrc\n", rc)); … … 3874 3871 "GuestCoreDumpDir|" 3875 3872 "GuestCoreDumpCount|" 3873 "HeartbeatInterval|" 3874 "HeartbeatTimeout|" 3876 3875 "TestingEnabled|" 3877 3876 "TestingMMIO|" … … 3933 3932 return PDMDEV_SET_ERROR(pDevIns, rc, 3934 3933 N_("Configuration error: Failed querying \"HeartbeatInterval\" as a 64-bit unsigned integer")); 3934 if (pThis->u64HeartbeatInterval < RT_NS_100MS/2) 3935 return PDMDEV_SET_ERROR(pDevIns, rc, 3936 N_("Configuration error: Heartbeat interval \"HeartbeatInterval\" too small")); 3935 3937 3936 3938 rc = CFGMR3QueryU64Def(pCfg, "HeartbeatTimeout", &pThis->u64HeartbeatTimeout, pThis->u64HeartbeatInterval * 2); … … 3938 3940 return PDMDEV_SET_ERROR(pDevIns, rc, 3939 3941 N_("Configuration error: Failed querying \"HeartbeatTimeout\" as a 64-bit unsigned integer")); 3942 if (pThis->u64HeartbeatTimeout < RT_NS_100MS) 3943 return PDMDEV_SET_ERROR(pDevIns, rc, 3944 N_("Configuration error: Heartbeat timeout timer interval \"HeartbeatTimeout\" too small")); 3940 3945 3941 3946 #ifndef VBOX_WITHOUT_TESTING_FEATURES
Note:
See TracChangeset
for help on using the changeset viewer.