Changeset 67155 in vbox
- Timestamp:
- May 31, 2017 9:08:13 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115831
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r66878 r67155 1388 1388 1389 1389 /** 1390 * Checks if we are executing inside thenested hardware-virtualized guest.1391 * 1392 * @returns true if in nested-guest mode, false otherwise.1390 * Checks if we are executing inside an SVM nested hardware-virtualized guest. 1391 * 1392 * @returns true if in SVM nested-guest mode, false otherwise. 1393 1393 * @param pCtx Pointer to the context. 1394 1394 */ 1395 DECLINLINE(bool) CPUMIsGuestIn NestedHwVirtMode(PCCPUMCTX pCtx)1395 DECLINLINE(bool) CPUMIsGuestInSvmNestedHwVirtMode(PCCPUMCTX pCtx) 1396 1396 { 1397 1397 /* … … 1400 1400 */ 1401 1401 return RT_BOOL(pCtx->hwvirt.svm.VmcbCtrl.u64InterceptCtrl & SVM_CTRL_INTERCEPT_VMRUN); 1402 /** @todo Intel VMX. */ 1402 } 1403 1404 /** 1405 * Checks if we are executing inside a VMX nested hardware-virtualized guest. 1406 * 1407 * @returns true if in VMX nested-guest mode, false otherwise. 1408 * @param pCtx Pointer to the context. 1409 */ 1410 DECLINLINE(bool) CPUMIsGuestInVmxNestedHwVirtMode(PCCPUMCTX pCtx) 1411 { 1412 RT_NOREF1(pCtx); 1413 /** @todo Intel. */ 1414 return false; 1415 } 1416 1417 /** 1418 * Checks if we are executing inside a nested hardware-virtualized guest. 1419 * 1420 * @returns true if in SVM/VMX nested-guest mode, false otherwise. 1421 * @param pCtx Pointer to the context. 1422 */ 1423 DECLINLINE(bool) CPUMIsGuestInNestedHwVirtMode(PCCPUMCTX pCtx) 1424 { 1425 return CPUMIsGuestInSvmNestedHwVirtMode(pCtx) || CPUMIsGuestInVmxNestedHwVirtMode(pCtx); 1403 1426 } 1404 1427 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
Note:
See TracChangeset
for help on using the changeset viewer.