Changeset 100357 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jul 4, 2023 7:00:26 AM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 158087
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GIMR0Hv.cpp
r98103 r100357 60 60 AssertPtr(pHCPhys); 61 61 62 int rc = RTR0MemObjAllocCont(pMemObj, HOST_PAGE_SIZE, false /* fExecutable */);62 int rc = RTR0MemObjAllocCont(pMemObj, HOST_PAGE_SIZE, NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 63 63 if (RT_FAILURE(rc)) 64 64 return rc; -
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r98103 r100357 421 421 /* Allocate a temporary VMXON region. */ 422 422 RTR0MEMOBJ hScatchMemObj; 423 rc = RTR0MemObjAllocCont(&hScatchMemObj, HOST_PAGE_SIZE, false /* fExecutable */);423 rc = RTR0MemObjAllocCont(&hScatchMemObj, HOST_PAGE_SIZE, NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 424 424 if (RT_FAILURE(rc)) 425 425 { … … 915 915 { 916 916 /** @todo NUMA */ 917 rc = RTR0MemObjAllocCont(&g_aHmCpuInfo[i].hMemObj, HOST_PAGE_SIZE, false /* executable R0 mapping */);917 rc = RTR0MemObjAllocCont(&g_aHmCpuInfo[i].hMemObj, HOST_PAGE_SIZE, NIL_RTHCPHYS /*PhysHighest*/, false /* executable R0 mapping */); 918 918 AssertLogRelRCReturn(rc, rc); 919 919 … … 928 928 #ifdef VBOX_WITH_NESTED_HWVIRT_SVM 929 929 rc = RTR0MemObjAllocCont(&g_aHmCpuInfo[i].n.svm.hNstGstMsrpm, SVM_MSRPM_PAGES << X86_PAGE_4K_SHIFT, 930 false /* executable R0 mapping */);930 NIL_RTHCPHYS /*PhysHighest*/, false /* executable R0 mapping */); 931 931 AssertLogRelRCReturn(rc, rc); 932 932 -
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r99753 r100357 606 606 */ 607 607 Assert(g_hMemObjIOBitmap == NIL_RTR0MEMOBJ); 608 int rc = RTR0MemObjAllocCont(&g_hMemObjIOBitmap, SVM_IOPM_PAGES << X86_PAGE_4K_SHIFT, false /* fExecutable */); 608 int rc = RTR0MemObjAllocCont(&g_hMemObjIOBitmap, SVM_IOPM_PAGES << X86_PAGE_4K_SHIFT, 609 NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 609 610 if (RT_FAILURE(rc)) 610 611 return rc; … … 766 767 * FS, GS, Kernel GS Base, etc.) apart from the host-state save area specified in MSR_K8_VM_HSAVE_PA. 767 768 */ 768 /** @todo Does this need to be below 4G? */ 769 rc = RTR0MemObjAllocCont(&pVCpu->hmr0.s.svm.hMemObjVmcbHost, SVM_VMCB_PAGES << HOST_PAGE_SHIFT, false /* fExecutable */);769 rc = RTR0MemObjAllocCont(&pVCpu->hmr0.s.svm.hMemObjVmcbHost, SVM_VMCB_PAGES << HOST_PAGE_SHIFT, 770 NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 770 771 if (RT_FAILURE(rc)) 771 772 goto failure_cleanup; … … 773 774 void *pvVmcbHost = RTR0MemObjAddress(pVCpu->hmr0.s.svm.hMemObjVmcbHost); 774 775 pVCpu->hmr0.s.svm.HCPhysVmcbHost = RTR0MemObjGetPagePhysAddr(pVCpu->hmr0.s.svm.hMemObjVmcbHost, 0 /* iPage */); 775 Assert(pVCpu->hmr0.s.svm.HCPhysVmcbHost < _4G);776 776 RT_BZERO(pvVmcbHost, HOST_PAGE_SIZE); 777 777 … … 779 779 * Allocate one page for the guest-state VMCB. 780 780 */ 781 /** @todo Does this need to be below 4G? */ 782 rc = RTR0MemObjAllocCont(&pVCpu->hmr0.s.svm.hMemObjVmcb, SVM_VMCB_PAGES << HOST_PAGE_SHIFT, false /* fExecutable */);781 rc = RTR0MemObjAllocCont(&pVCpu->hmr0.s.svm.hMemObjVmcb, SVM_VMCB_PAGES << HOST_PAGE_SHIFT, 782 NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 783 783 if (RT_FAILURE(rc)) 784 784 goto failure_cleanup; … … 786 786 pVCpu->hmr0.s.svm.pVmcb = (PSVMVMCB)RTR0MemObjAddress(pVCpu->hmr0.s.svm.hMemObjVmcb); 787 787 pVCpu->hmr0.s.svm.HCPhysVmcb = RTR0MemObjGetPagePhysAddr(pVCpu->hmr0.s.svm.hMemObjVmcb, 0 /* iPage */); 788 Assert(pVCpu->hmr0.s.svm.HCPhysVmcb < _4G);789 788 RT_BZERO(pVCpu->hmr0.s.svm.pVmcb, HOST_PAGE_SIZE); 790 789 … … 793 792 * SVM to not require one. 794 793 */ 795 /** @todo Does this need to be below 4G? */796 794 rc = RTR0MemObjAllocCont(&pVCpu->hmr0.s.svm.hMemObjMsrBitmap, SVM_MSRPM_PAGES << HOST_PAGE_SHIFT, 797 false /* fExecutable */);795 NIL_RTHCPHYS /*PhysHighest*/, false /* fExecutable */); 798 796 if (RT_FAILURE(rc)) 799 797 goto failure_cleanup;
Note:
See TracChangeset
for help on using the changeset viewer.