Changeset 74542 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Oct 1, 2018 5:42:25 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125410
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r74512 r74542 954 954 pVCpu->cpum.s.Guest.hwvirt.vmx.pAutoMsrAreaR3 = NULL; 955 955 } 956 if (pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3) 957 { 958 SUPR3PageFreeEx(pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3, VMX_V_MSR_BITMAP_PAGES); 959 pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3 = NULL; 960 } 956 961 } 957 962 } … … 1036 1041 */ 1037 1042 Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pAutoMsrAreaR3); 1038 rc = SUPR3PageAllocEx(VMX_V_AUTOMSR_AREA_PAGES, 0 /* fFlags */, 1039 (void **)&pVCpu->cpum.s.Guest.hwvirt.vmx.pAutoMsrAreaR3, 1043 rc = SUPR3PageAllocEx(VMX_V_AUTOMSR_AREA_PAGES, 0 /* fFlags */, (void **)&pVCpu->cpum.s.Guest.hwvirt.vmx.pAutoMsrAreaR3, 1040 1044 &pVCpu->cpum.s.Guest.hwvirt.vmx.pAutoMsrAreaR0, NULL /* paPages */); 1041 1045 if (RT_FAILURE(rc)) … … 1044 1048 LogRel(("CPUM%u: Failed to alloc %u pages for the nested-guest's auto-load/store MSR area\n", pVCpu->idCpu, 1045 1049 VMX_V_AUTOMSR_AREA_PAGES)); 1050 break; 1051 } 1052 1053 /* 1054 * Allocate the MSR bitmap. 1055 */ 1056 Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3); 1057 rc = SUPR3PageAllocEx(VMX_V_MSR_BITMAP_PAGES, 0 /* fFlags */, (void **)&pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3, 1058 &pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR0, NULL /* paPages */); 1059 if (RT_FAILURE(rc)) 1060 { 1061 Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pvMsrBitmapR3); 1062 LogRel(("CPUM%u: Failed to alloc %u pages for the nested-guest's MSR bitmap\n", pVCpu->idCpu, 1063 VMX_V_MSR_BITMAP_PAGES)); 1046 1064 break; 1047 1065 }
Note:
See TracChangeset
for help on using the changeset viewer.