Changeset 54748 in vbox for trunk/src/VBox
- Timestamp:
- Mar 13, 2015 4:25:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r54007 r54748 340 340 pThis->fu32AdditionsOk = VBOX_GUEST_INTERFACE_VERSION_OK(pThis->guestInfo.interfaceVersion); 341 341 342 LogRel((" Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%u-bit)\n",342 LogRel(("VMMDev: Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%u-bit)\n", 343 343 pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType, 344 344 (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32)); … … 388 388 if (pThis->fHasMissedHB) 389 389 { 390 LogRel((" vmmDevReqHandler_GuestHeartBeat: guest is alive\n"));390 LogRel(("VMMDev: GuestHeartBeat: Guest is alive\n")); 391 391 ASMAtomicWriteBool(&pThis->fHasMissedHB, false); 392 392 } … … 406 406 if (pThis->fHBCheckEnabled) 407 407 { 408 uint64_t interval = TMTimerGetNano(pTimer) - pThis->uLastHBTime; 409 if (!pThis->fHasMissedHB && interval >= pThis->u64HeartbeatInterval) 410 { 411 LogRel(("vmmDevHeartBeatCheckTimer: guest seems to be not responding, last heartbeat received %RU64 sec ago\n", interval / 1000000000)); 408 uint64_t uIntervalNs = TMTimerGetNano(pTimer) - pThis->uLastHBTime; 409 if (!pThis->fHasMissedHB && uIntervalNs >= pThis->u64HeartbeatInterval) 410 { 411 LogRel(("VMMDev: HeartBeatCheckTimer: Guest seems to be unresponsive. Last heartbeat received %RU64 sec ago\n", 412 uIntervalNs / RT_NS_1SEC_64)); 412 413 ASMAtomicWriteBool(&pThis->fHasMissedHB, true); 413 414 } … … 440 441 if (RT_SUCCESS(rc)) 441 442 { 442 LogRel(("Heartbeat checking timer has been set to trigger every %RU64 sec\n", pThis->u64HeartbeatInterval / 500000000)); 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)); 443 446 } 444 447 else 445 LogRel((" Cannot create heartbeat check timer, rc=%Rrc\n", rc));448 LogRel(("VMMDev: Cannot create heartbeat check timer, rc=%Rrc\n", rc)); 446 449 } 447 450 else 448 451 { 449 452 rc = TMTimerStop(pThis->pHBCheckTimer); 450 LogRel((" Heartbeat checking timer has been stopped, rc=%Rrc\n", rc));453 LogRel(("VMMDev: Heartbeat checking timer has been stopped, rc=%Rrc\n", rc)); 451 454 } 452 455 } 453 456 else 454 457 { 455 LogRel((" vmmDevReqHandler_HeartbeatConfigure: enabled=%d\n", pThis->fHBCheckEnabled));458 LogRel(("VMMDev: vmmDevReqHandler_HeartbeatConfigure: fHBCheckEnabled=%RTbool\n", pThis->fHBCheckEnabled)); 456 459 rc = VINF_SUCCESS; 457 460 } … … 521 524 VBoxGuestInfo2 const *pInfo2 = &((VMMDevReportGuestInfo2 *)pReqHdr)->guestInfo; 522 525 523 LogRel((" Guest Additions information report: Version %d.%d.%d r%d '%.*s'\n",526 LogRel(("VMMDev: Guest Additions information report: Version %d.%d.%d r%d '%.*s'\n", 524 527 pInfo2->additionsMajor, pInfo2->additionsMinor, pInfo2->additionsBuild, 525 528 pInfo2->additionsRevision, sizeof(pInfo2->szName), pInfo2->szName)); … … 589 592 590 593 /* non-strict mode, just zap the extra stuff. */ 591 LogRel((" ReportGuestInfo2: Ignoring unparsable version name bits: '%s' -> '%s'.\n", pszName, pszRelaxedName));594 LogRel(("VMMDev: ReportGuestInfo2: Ignoring unparsable version name bits: '%s' -> '%s'.\n", pszName, pszRelaxedName)); 592 595 pszName = pszRelaxedName; 593 596 } … … 744 747 if (!pEntry) 745 748 { 746 LogRelMax(10, ("VMM : Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status));749 LogRelMax(10, ("VMMDev: Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status)); 747 750 return VERR_OUT_OF_RESOURCES; 748 751 } … … 842 845 pThis->guestCaps = fu32Caps; 843 846 844 LogRel((" Guest Additions capability report (legacy): (0x%x) seamless: %s, hostWindowMapping: %s, graphics: yes\n",847 LogRel(("VMMDev: Guest Additions capability report (legacy): (0x%x) seamless: %s, hostWindowMapping: %s, graphics: yes\n", 845 848 fu32Caps, 846 849 fu32Caps & VMMDEV_GUEST_SUPPORTS_SEAMLESS ? "yes" : "no", … … 870 873 fu32Caps &= ~pReq->u32NotMask; 871 874 872 LogRel((" Guest Additions capability report: (%#x -> %#x) seamless: %s, hostWindowMapping: %s, graphics: %s\n",875 LogRel(("VMMDev: Guest Additions capability report: (%#x -> %#x) seamless: %s, hostWindowMapping: %s, graphics: %s\n", 873 876 pThis->guestCaps, fu32Caps, 874 877 fu32Caps & VMMDEV_GUEST_SUPPORTS_SEAMLESS ? "yes" : "no", … … 901 904 pReq->pointerXPos = pThis->mouseXAbs; 902 905 pReq->pointerYPos = pThis->mouseYAbs; 903 LogRel2(("VMMDev Req_GetMouseStatus: features = %#x, xAbs = %d, yAbs =%d\n",906 LogRel2(("VMMDev: vmmdevReqHandler_GetMouseStatus: mouseFeatures=%#x, xAbs=%d, yAbs=%d\n", 904 907 pReq->mouseFeatures, pReq->pointerXPos, pReq->pointerYPos)); 905 908 return VINF_SUCCESS; … … 919 922 AssertMsgReturn(pReq->header.size == sizeof(*pReq), ("%u\n", pReq->header.size), VERR_INVALID_PARAMETER); 920 923 921 LogRelFlow Func(("mouseFeatures =%#x\n", pReq->mouseFeatures));924 LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: mouseFeatures=%#x\n", pReq->mouseFeatures)); 922 925 923 926 bool fNotify = false; … … 930 933 pThis->mouseCapabilities |= (pReq->mouseFeatures & VMMDEV_MOUSE_GUEST_MASK); 931 934 932 LogRelFlow Func(("new host capabilities: %#x\n", pThis->mouseCapabilities));935 LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: New host capabilities: %#x\n", pThis->mouseCapabilities)); 933 936 934 937 /* … … 937 940 if (fNotify) 938 941 { 939 LogRelFlow Func(("notifying connector\n"));942 LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: Notifying connector\n")); 940 943 pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities); 941 944 } … … 1080 1083 /* new reservation */ 1081 1084 rc = PGMR3MappingsFix(pVM, pReq->hypervisorStart, pReq->hypervisorSize); 1082 LogRel((" Guest reported fixed hypervisor window at 0%010x (size = %#x, rc = %Rrc)\n",1083 pReq->hypervisorS tart, pReq->hypervisorSize, rc));1085 LogRel(("VMMDev: Guest reported fixed hypervisor window at 0%010x (size = %#x, rc = %Rrc)\n", pReq->hypervisorStart, 1086 pReq->hypervisorSize, rc)); 1084 1087 } 1085 1088 else if (RT_FAILURE(rc)) … … 1138 1141 case VMMDevPowerState_Pause: 1139 1142 { 1140 LogRel((" Guest requests the VM to be suspended (paused)\n"));1143 LogRel(("VMMDev: Guest requests the VM to be suspended (paused)\n")); 1141 1144 return PDMDevHlpVMSuspend(pThis->pDevIns); 1142 1145 } … … 1144 1147 case VMMDevPowerState_PowerOff: 1145 1148 { 1146 LogRel((" Guest requests the VM to be turned off\n"));1149 LogRel(("VMMDev: Guest requests the VM to be turned off\n")); 1147 1150 return PDMDevHlpVMPowerOff(pThis->pDevIns); 1148 1151 } … … 1152 1155 if (true /*pThis->fAllowGuestToSaveState*/) 1153 1156 { 1154 LogRel((" Guest requests the VM to be saved and powered off\n"));1157 LogRel(("VMMDev: Guest requests the VM to be saved and powered off\n")); 1155 1158 return PDMDevHlpVMSuspendSaveAndPowerOff(pThis->pDevIns); 1156 1159 } 1157 LogRel((" Guest requests the VM to be saved and powered off, declined\n"));1160 LogRel(("VMMDev: Guest requests the VM to be saved and powered off, declined\n")); 1158 1161 return VERR_ACCESS_DENIED; 1159 1162 } 1160 1163 1161 1164 default: 1162 AssertMsgFailed(("VMMDev invalid power state request: %d\n", pReq->powerState));1165 AssertMsgFailed(("VMMDev: Invalid power state request: %d\n", pReq->powerState)); 1163 1166 return VERR_INVALID_PARAMETER; 1164 1167 } … … 1532 1535 AssertMsgReturn(pReq->header.size == sizeof(*pReq), ("%u\n", pReq->header.size), VERR_INVALID_PARAMETER); 1533 1536 1534 LogRelFlow Func(("VMMDevCtlGuestFilterMask: or mask: %#x, notmask: %#x\n", pReq->u32OrMask, pReq->u32NotMask));1537 LogRelFlow(("VMMDev: vmmdevReqHandler_CtlGuestFilterMask: OR mask: %#x, NOT mask: %#x\n", pReq->u32OrMask, pReq->u32NotMask)); 1535 1538 1536 1539 /* HGCM event notification is enabled by the VMMDev device … … 2726 2729 else 2727 2730 { 2728 LogRelMax(10, ("VMMDev: the guest has not yet reported to us -- refusing operation of request #%d\n",2729 requestHeader.requestType));2731 LogRelMax(10, ("VMMDev: Guest has not yet reported to us -- refusing operation of request #%d\n", 2732 requestHeader.requestType)); 2730 2733 requestHeader.rc = VERR_NOT_SUPPORTED; 2731 2734 } … … 2733 2736 else 2734 2737 { 2735 LogRelMax(50, ("VMMDev: request packet too big (%x). Refusing operation.\n", requestHeader.size));2738 LogRelMax(50, ("VMMDev: Request packet too big (%x). Refusing operation.\n", requestHeader.size)); 2736 2739 requestHeader.rc = VERR_NOT_SUPPORTED; 2737 2740 } … … 3066 3069 bool fNotify = fOldCaps != pThis->mouseCapabilities; 3067 3070 3068 LogRelFlowFunc(("fCapsAdded=0x%x, fCapsRemoved=0x%x, fNotify=%RTbool\n", fCapsAdded, fCapsRemoved, fNotify)); 3071 LogRelFlow(("VMMDev: vmmdevIPort_UpdateMouseCapabilities: fCapsAdded=0x%x, fCapsRemoved=0x%x, fNotify=%RTbool\n", fCapsAdded, 3072 fCapsRemoved, fNotify)); 3069 3073 3070 3074 if (fNotify) … … 3465 3469 SSMR3GetU32(pSSM, &pThis->u32HostEventFlags); 3466 3470 3467 //SSMR3GetBool(pSSM, &pThis->pVMMDevRAMR3->fHaveEvents);3471 //SSMR3GetBool(pSSM, &pThis->pVMMDevRAMR3->fHaveEvents); 3468 3472 // here be dragons (probably) 3469 3473 SSMR3GetMem(pSSM, &pThis->pVMMDevRAMR3->V, sizeof (pThis->pVMMDevRAMR3->V)); … … 3552 3556 if (pThis->fu32AdditionsOk) 3553 3557 { 3554 LogRel((" Guest Additions information report: additionsVersion = 0x%08X, osType = 0x%08X (%u-bit)\n",3558 LogRel(("VMMDev: Guest Additions information report: additionsVersion = 0x%08X, osType = 0x%08X (%u-bit)\n", 3555 3559 pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType, 3556 3560 (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32));
Note:
See TracChangeset
for help on using the changeset viewer.