Changeset 75493 in vbox for trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
- Timestamp:
- Nov 15, 2018 5:06:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
r75387 r75493 1278 1278 && CPUMIsGuestVmxProcCtls2Set(pVCpu, &pVCpu->cpum.s.Guest, VMX_PROC_CTLS2_VIRT_X2APIC_MODE)) 1279 1279 { 1280 /** @todo NSTVMX: perhaps IEMExecVmxVirtApicAccessMsr should be moved to1281 * HMVMXAll.cpp? */1282 1280 VBOXSTRICTRC rcStrict = IEMExecVmxVirtApicAccessMsr(pVCpu, idMsr, puValue, false /* fWrite */); 1283 Assert(rcStrict == VINF_SUCCESS || rcStrict == VERR_OUT_OF_RANGE || rcStrict == VINF_VMX_INTERCEPT_NOT_ACTIVE); 1284 if (rcStrict != VINF_VMX_INTERCEPT_NOT_ACTIVE) 1285 { 1286 if (rcStrict == VERR_OUT_OF_RANGE) 1287 return VERR_CPUM_RAISE_GP_0; 1288 Assert(rcStrict == VINF_SUCCESS); 1281 if (rcStrict == VINF_VMX_MODIFIES_BEHAVIOR) 1289 1282 return VINF_SUCCESS; 1290 } 1283 if (rcStrict == VERR_OUT_OF_RANGE) 1284 return VERR_CPUM_RAISE_GP_0; 1285 Assert(rcStrict == VINF_VMX_INTERCEPT_NOT_ACTIVE); 1291 1286 } 1292 1287 #endif … … 1303 1298 && CPUMIsGuestVmxProcCtls2Set(pVCpu, &pVCpu->cpum.s.Guest, VMX_PROC_CTLS2_VIRT_X2APIC_MODE)) 1304 1299 { 1305 /** @todo NSTVMX: perhaps IEMExecVmxVirtApicAccessMsr should be moved to1306 * HMVMXAll.cpp? */1307 1300 VBOXSTRICTRC rcStrict = IEMExecVmxVirtApicAccessMsr(pVCpu, idMsr, &uValue, true /* fWrite */); 1308 Assert(rcStrict == VINF_SUCCESS || rcStrict == VERR_OUT_OF_RANGE || rcStrict == VINF_VMX_INTERCEPT_NOT_ACTIVE); 1309 if (rcStrict != VINF_VMX_INTERCEPT_NOT_ACTIVE) 1310 { 1311 if (rcStrict == VERR_OUT_OF_RANGE) 1312 return VERR_CPUM_RAISE_GP_0; 1313 Assert(rcStrict == VINF_SUCCESS); 1301 if (rcStrict == VINF_VMX_MODIFIES_BEHAVIOR) 1314 1302 return VINF_SUCCESS; 1315 } 1303 if (rcStrict == VERR_OUT_OF_RANGE) 1304 return VERR_CPUM_RAISE_GP_0; 1305 Assert(rcStrict == VINF_VMX_INTERCEPT_NOT_ACTIVE); 1316 1306 } 1317 1307 #endif
Note:
See TracChangeset
for help on using the changeset viewer.