vbox的更動 8425 路徑 trunk/src/VBox/Devices/VMMDev
- 時間撮記:
- 2008-4-28 下午03:03:37 (17 年 以前)
- 位置:
- trunk/src/VBox/Devices/VMMDev
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r8325 r8425 572 572 573 573 pData->pDrv->pfnUpdateGuestCapabilities(pData->pDrv, pData->guestCaps); 574 pRequestHeader->rc = VINF_SUCCESS;575 }576 break;577 }578 579 case VMMDevReq_SetMaxGuestResolution:580 {581 if (pRequestHeader->size != sizeof(VMMDevReqGuestResolution))582 {583 AssertMsgFailed(("VMMDev guest resolution structure has invalid size!\n"));584 pRequestHeader->rc = VERR_INVALID_PARAMETER;585 }586 else587 {588 VMMDevReqGuestResolution *guestRes = (VMMDevReqGuestResolution*)pRequestHeader;589 590 pData->u32MaxGuestWidth = guestRes->u32MaxWidth;591 pData->u32MaxGuestHeight = guestRes->u32MaxHeight;592 593 LogRel(("Guest Additions maximum resolution of %dx%d reported\n",594 pData->u32MaxGuestWidth, pData->u32MaxGuestHeight));595 596 /* Only notify frontends that are interested (i.e. Main, but not BFE) */597 if (NULL != pData->pDrv->pfnUpdateMaxGuestResolution)598 pData->pDrv->pfnUpdateMaxGuestResolution(pData->pDrv, pData->u32MaxGuestWidth, pData->u32MaxGuestHeight);599 574 pRequestHeader->rc = VINF_SUCCESS; 600 575 } … … 1972 1947 1973 1948 1974 #define VMMDEV_SSM_VERSION 71949 #define VMMDEV_SSM_VERSION 6 1975 1950 1976 1951 /** … … 2003 1978 SSMR3PutU32(pSSMHandle, pData->guestCaps); 2004 1979 2005 SSMR3PutU32(pSSMHandle, pData->u32MaxGuestWidth);2006 SSMR3PutU32(pSSMHandle, pData->u32MaxGuestHeight);2007 2008 1980 #ifdef VBOX_HGCM 2009 1981 vmmdevHGCMSaveState (pData, pSSMHandle); … … 2024 1996 { 2025 1997 VMMDevState *pData = PDMINS2DATA(pDevIns, VMMDevState*); 2026 if ( SSM_VERSION_MAJOR_CHANGED(u32Version, VMMDEV_SSM_VERSION) 2027 || (SSM_VERSION_MINOR(u32Version) < 6)) 1998 if (u32Version != VMMDEV_SSM_VERSION) 2028 1999 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 2029 2000 SSMR3GetU32(pSSMHandle, &pData->hypervisorSize); … … 2046 2017 SSMR3GetU32(pSSMHandle, &pData->guestCaps); 2047 2018 2048 if ( SSM_VERSION_MAJOR(u32Version) > 02049 || SSM_VERSION_MINOR(u32Version) >= 7)2050 {2051 SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestWidth);2052 SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestHeight);2053 }2054 2055 2019 #ifdef VBOX_HGCM 2056 2020 vmmdevHGCMLoadState (pData, pSSMHandle); … … 2082 2046 if (pData->pDrv) 2083 2047 pData->pDrv->pfnUpdateGuestCapabilities(pData->pDrv, pData->guestCaps); 2084 2085 if ( pData->pDrv && pData->pDrv->pfnUpdateMaxGuestResolution)2086 pData->pDrv->pfnUpdateMaxGuestResolution(pData->pDrv, pData->u32MaxGuestWidth, pData->u32MaxGuestHeight);2087 2048 2088 2049 return VINF_SUCCESS; … … 2358 2319 pData->fu32AdditionsOk = false; 2359 2320 memset (&pData->guestInfo, 0, sizeof (pData->guestInfo)); 2360 2361 /* No maximum resolution specified yet */2362 pData->u32MaxGuestWidth = 0;2363 pData->u32MaxGuestHeight = 0;2364 2321 2365 2322 memset (&pData->lastReadDisplayChangeRequest, 0, sizeof (pData->lastReadDisplayChangeRequest)); -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r8312 r8425 108 108 uint32_t u32VideoAccelEnabled; 109 109 110 /** Maximum guest resolution, width - a value of 0 mean no maximum */111 uint32_t u32MaxGuestWidth;112 /** Maximum guest resolution, height - a value of 0 mean no maximum */113 uint32_t u32MaxGuestHeight;114 115 110 /** resolution change request */ 116 111 struct
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器