Changeset 53611 in vbox for trunk/src/VBox
- Timestamp:
- Dec 30, 2014 8:23:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r53325 r53611 1148 1148 } 1149 1149 else 1150 { 1151 AssertMsgFailed(("hmR0VmxSetMsrPermission: Invalid MSR %#RX32\n", uMsr)); 1152 return; 1153 } 1150 AssertMsgFailedReturnVoid(("hmR0VmxSetMsrPermission: Invalid MSR %#RX32\n", uMsr)); 1154 1151 1155 1152 Assert(iBit <= 0x1fff); … … 1197 1194 } 1198 1195 else 1199 { 1200 AssertMsgFailed(("hmR0VmxGetMsrPermission: Invalid MSR %#RX32\n", uMsr)); 1201 return VERR_NOT_SUPPORTED; 1202 } 1196 AssertMsgFailedReturn(("hmR0VmxGetMsrPermission: Invalid MSR %#RX32\n", uMsr), VERR_NOT_SUPPORTED); 1203 1197 1204 1198 Assert(iBit <= 0x1fff); … … 3067 3061 * is effectively what the CPU does for "scaling by 8". TI is always 0 and RPL should be too in most cases. 3068 3062 */ 3069 if ((uSelTR | X86_SEL_RPL_LDT) > Gdtr.cbGdt) 3070 { 3071 AssertMsgFailed(("hmR0VmxSaveHostSegmentRegs: TR selector exceeds limit. TR=%RTsel cbGdt=%#x\n", uSelTR, Gdtr.cbGdt)); 3072 return VERR_VMX_INVALID_HOST_STATE; 3073 } 3063 AssertMsgReturn((uSelTR | X86_SEL_RPL_LDT) <= Gdtr.cbGdt, 3064 ("hmR0VmxSaveHostSegmentRegs: TR selector exceeds limit. TR=%RTsel cbGdt=%#x\n", uSelTR, Gdtr.cbGdt), 3065 VERR_VMX_INVALID_HOST_STATE); 3074 3066 3075 3067 PCX86DESCHC pDesc = (PCX86DESCHC)(Gdtr.pGdt + (uSelTR & X86_SEL_MASK)); … … 11298 11290 case VMX_APIC_ACCESS_TYPE_LINEAR_READ: 11299 11291 { 11300 if ( (pVCpu->hm.s.vmx.u32ProcCtls & VMX_VMCS_CTRL_PROC_EXEC_USE_TPR_SHADOW) 11301 && VMX_EXIT_QUALIFICATION_APIC_ACCESS_OFFSET(pVmxTransient->uExitQualification) == 0x80) 11302 { 11303 AssertMsgFailed(("hmR0VmxExitApicAccess: can't access TPR offset while using TPR shadowing.\n")); 11304 } 11292 AssertMsg( !(pVCpu->hm.s.vmx.u32ProcCtls & VMX_VMCS_CTRL_PROC_EXEC_USE_TPR_SHADOW) 11293 || VMX_EXIT_QUALIFICATION_APIC_ACCESS_OFFSET(pVmxTransient->uExitQualification) != 0x80, 11294 ("hmR0VmxExitApicAccess: can't access TPR offset while using TPR shadowing.\n")); 11305 11295 11306 11296 RTGCPHYS GCPhys = pMixedCtx->msrApicBase; /* Always up-to-date, msrApicBase is not part of the VMCS. */ … … 11312 11302 11313 11303 VBOXSTRICTRC rc2 = IOMMMIOPhysHandler(pVM, pVCpu, 11314 (uAccessType == VMX_APIC_ACCESS_TYPE_LINEAR_READ)? 0 : X86_TRAP_PF_RW,11304 uAccessType == VMX_APIC_ACCESS_TYPE_LINEAR_READ ? 0 : X86_TRAP_PF_RW, 11315 11305 CPUMCTX2CORE(pMixedCtx), GCPhys); 11316 11306 rc = VBOXSTRICTRC_VAL(rc2);
Note:
See TracChangeset
for help on using the changeset viewer.