VirtualBox

vbox的更動 8425 路徑 trunk/src/VBox/Devices/VMMDev


忽略:
時間撮記:
2008-4-28 下午03:03:37 (17 年 以前)
作者:
vboxsync
訊息:

Frontends/VirtualBox3/4, Main, Devices/VMMDev, Frontends/VBoxBFE, Additions/common, Additions/x11: reverted r30152, r30085, r30074 and r30072

位置:
trunk/src/VBox/Devices/VMMDev
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r8325 r8425  
    572572
    573573                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             else
    587             {
    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);
    599574                pRequestHeader->rc = VINF_SUCCESS;
    600575            }
     
    19721947
    19731948
    1974 #define VMMDEV_SSM_VERSION  7
     1949#define VMMDEV_SSM_VERSION  6
    19751950
    19761951/**
     
    20031978    SSMR3PutU32(pSSMHandle, pData->guestCaps);
    20041979
    2005     SSMR3PutU32(pSSMHandle, pData->u32MaxGuestWidth);
    2006     SSMR3PutU32(pSSMHandle, pData->u32MaxGuestHeight);
    2007 
    20081980#ifdef VBOX_HGCM
    20091981    vmmdevHGCMSaveState (pData, pSSMHandle);
     
    20241996{
    20251997    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)
    20281999        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
    20292000    SSMR3GetU32(pSSMHandle, &pData->hypervisorSize);
     
    20462017    SSMR3GetU32(pSSMHandle, &pData->guestCaps);
    20472018
    2048     if (   SSM_VERSION_MAJOR(u32Version) >  0
    2049         || SSM_VERSION_MINOR(u32Version) >= 7)
    2050     {
    2051         SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestWidth);
    2052         SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestHeight);
    2053     }
    2054 
    20552019#ifdef VBOX_HGCM
    20562020    vmmdevHGCMLoadState (pData, pSSMHandle);
     
    20822046    if (pData->pDrv)
    20832047        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);
    20872048
    20882049    return VINF_SUCCESS;
     
    23582319    pData->fu32AdditionsOk = false;
    23592320    memset (&pData->guestInfo, 0, sizeof (pData->guestInfo));
    2360 
    2361     /* No maximum resolution specified yet */
    2362     pData->u32MaxGuestWidth  = 0;
    2363     pData->u32MaxGuestHeight = 0;
    23642321
    23652322    memset (&pData->lastReadDisplayChangeRequest, 0, sizeof (pData->lastReadDisplayChangeRequest));
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r8312 r8425  
    108108    uint32_t u32VideoAccelEnabled;
    109109
    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 
    115110    /** resolution change request */
    116111    struct
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette