VirtualBox

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


忽略:
時間撮記:
2008-2-11 下午11:35:37 (17 年 以前)
作者:
vboxsync
訊息:

Pass mapping sizes in uint32_t instead of size_t to avoid warnings. (PGMR3MapPT, PGMR3MappingsSize and PGMR3MappingsFix.)

檔案:
修改 1 筆資料

圖例:

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

    r6260 r6915  
    719719                VMMDevReqHypervisorInfo *hypervisorInfo = (VMMDevReqHypervisorInfo*)pRequestHeader;
    720720                PVM pVM = PDMDevHlpGetVM(pDevIns);
    721                 size_t hypervisorSize = 0;
    722                 pRequestHeader->rc = PGMR3MappingsSize(pVM, &hypervisorSize);
    723                 hypervisorInfo->hypervisorSize = (uint32_t)hypervisorSize;
    724                 Assert(hypervisorInfo->hypervisorSize == hypervisorSize);
     721                pRequestHeader->rc = PGMR3MappingsSize(pVM, &hypervisorInfo->hypervisorSize);
    725722            }
    726723            break;
     
    742739                PVM pVM = PDMDevHlpGetVM(pDevIns);
    743740                if (hypervisorInfo->hypervisorStart == 0)
    744                 {
    745741                    pRequestHeader->rc = PGMR3MappingsUnfix(pVM);
    746                 } else
     742                else
    747743                {
    748744                    /* only if the client has queried the size before! */
    749                     size_t mappingsSize;
     745                    uint32_t mappingsSize;
    750746                    pRequestHeader->rc = PGMR3MappingsSize(pVM, &mappingsSize);
    751                     if (VBOX_SUCCESS(pRequestHeader->rc) && (hypervisorInfo->hypervisorSize == mappingsSize))
     747                    if (VBOX_SUCCESS(pRequestHeader->rc) && hypervisorInfo->hypervisorSize == mappingsSize)
    752748                    {
    753749                        /* new reservation */
    754750                        pRequestHeader->rc = PGMR3MappingsFix(pVM, hypervisorInfo->hypervisorStart,
    755                                                              hypervisorInfo->hypervisorSize);
     751                                                              hypervisorInfo->hypervisorSize);
    756752                        LogRel(("Guest reported fixed hypervisor window at 0x%p (size = 0x%x, rc = %Vrc)\n",
    757753                                hypervisorInfo->hypervisorStart,
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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