Changeset 78233 in vbox for trunk/src/VBox
- Timestamp:
- Apr 20, 2019 10:35:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r78232 r78233 2746 2746 DECLINLINE(int) hmR0VmxSetupVmcsVirtApicAddr(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo) 2747 2747 { 2748 NOREF(pVCpu); 2748 NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */ 2749 2749 RTHCPHYS const HCPhysVirtApic = pVmcsInfo->HCPhysVirtApic; 2750 2750 Assert(HCPhysVirtApic != NIL_RTHCPHYS); … … 2758 2758 * 2759 2759 * @returns VBox status code. 2760 * @param pVCpu The cross context virtual CPU structure. 2760 2761 * @param pVmcsInfo The VMCS info. object. 2761 2762 */ 2762 DECLINLINE(int) hmR0VmxSetupVmcsMsrBitmapAddr(PCVMXVMCSINFO pVmcsInfo) 2763 { 2763 DECLINLINE(int) hmR0VmxSetupVmcsMsrBitmapAddr(PVMCPU pVCpu, PCVMXVMCSINFO pVmcsInfo) 2764 { 2765 NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */ 2764 2766 RTHCPHYS const HCPhysMsrBitmap = pVmcsInfo->HCPhysMsrBitmap; 2765 2767 Assert(HCPhysMsrBitmap != NIL_RTHCPHYS); … … 2788 2790 * 2789 2791 * @returns VBox status code. 2792 * @param pVCpu The cross context virtual CPU structure. 2790 2793 * @param pVmcsInfo The VMCS info. object. 2791 2794 */ 2792 DECLINLINE(int) hmR0VmxSetupVmcsLinkPtr(PVMXVMCSINFO pVmcsInfo) 2793 { 2795 DECLINLINE(int) hmR0VmxSetupVmcsLinkPtr(PVMCPU pVCpu, PVMXVMCSINFO pVmcsInfo) 2796 { 2797 NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */ 2794 2798 uint64_t const u64VmcsLinkPtr = pVmcsInfo->u64VmcsLinkPtr; 2795 2799 Assert(u64VmcsLinkPtr == UINT64_C(0xffffffffffffffff)); /* Bits 63:0 MB1. */ … … 2803 2807 * 2804 2808 * @returns VBox status code. 2809 * @param pVCpu The cross context virtual CPU structure. 2805 2810 * @param pVmcsInfo The VMCS info. object. 2806 2811 */ 2807 DECLINLINE(int) hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(PVMXVMCSINFO pVmcsInfo) 2808 { 2812 DECLINLINE(int) hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(PVMCPU pVCpu, PVMXVMCSINFO pVmcsInfo) 2813 { 2814 NOREF(pVCpu); /* Used implicitly by VMXWriteVmcs64 on 32-bit hosts. */ 2815 2809 2816 RTHCPHYS const HCPhysGuestMsrLoad = pVmcsInfo->HCPhysGuestMsrLoad; 2810 2817 Assert(HCPhysGuestMsrLoad != NIL_RTHCPHYS); … … 3110 3117 { 3111 3118 fVal |= VMX_PROC_CTLS_USE_MSR_BITMAPS; 3112 int rc = hmR0VmxSetupVmcsMsrBitmapAddr(pV mcsInfo);3119 int rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVCpu, pVmcsInfo); 3113 3120 AssertRCReturn(rc, rc); 3114 3121 } … … 3163 3170 { 3164 3171 /* Set the auto-load/store MSR area addresses in the VMCS. */ 3165 int rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pV mcsInfo);3172 int rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo); 3166 3173 if (RT_SUCCESS(rc)) 3167 3174 { 3168 3175 /* Set the VMCS link pointer in the VMCS. */ 3169 rc = hmR0VmxSetupVmcsLinkPtr(pV mcsInfo);3176 rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo); 3170 3177 if (RT_SUCCESS(rc)) 3171 3178 { … … 3239 3246 { 3240 3247 PVM pVM = pVCpu->CTX_SUFF(pVM); 3241 int rc = hmR0VmxSetupVmcsLinkPtr(pV mcsInfo);3248 int rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo); 3242 3249 if (RT_SUCCESS(rc)) 3243 3250 { 3244 rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pV mcsInfo);3251 rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo); 3245 3252 if (RT_SUCCESS(rc)) 3246 3253 { 3247 3254 if (pVM->hm.s.vmx.Msrs.ProcCtls.n.allowed1 & VMX_PROC_CTLS_USE_MSR_BITMAPS) 3248 rc = hmR0VmxSetupVmcsMsrBitmapAddr(pV mcsInfo);3255 rc = hmR0VmxSetupVmcsMsrBitmapAddr(pVCpu, pVmcsInfo); 3249 3256 if (RT_SUCCESS(rc)) 3250 3257 {
Note:
See TracChangeset
for help on using the changeset viewer.