vbox的更動 6915 路徑 trunk/src/VBox/Devices/VMMDev
- 時間撮記:
- 2008-2-11 下午11:35:37 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r6260 r6915 719 719 VMMDevReqHypervisorInfo *hypervisorInfo = (VMMDevReqHypervisorInfo*)pRequestHeader; 720 720 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); 725 722 } 726 723 break; … … 742 739 PVM pVM = PDMDevHlpGetVM(pDevIns); 743 740 if (hypervisorInfo->hypervisorStart == 0) 744 {745 741 pRequestHeader->rc = PGMR3MappingsUnfix(pVM); 746 }else742 else 747 743 { 748 744 /* only if the client has queried the size before! */ 749 size_t mappingsSize;745 uint32_t mappingsSize; 750 746 pRequestHeader->rc = PGMR3MappingsSize(pVM, &mappingsSize); 751 if (VBOX_SUCCESS(pRequestHeader->rc) && (hypervisorInfo->hypervisorSize == mappingsSize))747 if (VBOX_SUCCESS(pRequestHeader->rc) && hypervisorInfo->hypervisorSize == mappingsSize) 752 748 { 753 749 /* new reservation */ 754 750 pRequestHeader->rc = PGMR3MappingsFix(pVM, hypervisorInfo->hypervisorStart, 755 hypervisorInfo->hypervisorSize);751 hypervisorInfo->hypervisorSize); 756 752 LogRel(("Guest reported fixed hypervisor window at 0x%p (size = 0x%x, rc = %Vrc)\n", 757 753 hypervisorInfo->hypervisorStart,
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器