VirtualBox

Changeset 67155 in vbox


Ignore:
Timestamp:
May 31, 2017 9:08:13 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115831
Message:

cpum.h: Nested Hw.virt: adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r66878 r67155  
    13881388
    13891389/**
    1390  * Checks if we are executing inside the nested 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.
    13931393 * @param   pCtx        Pointer to the context.
    13941394 */
    1395 DECLINLINE(bool) CPUMIsGuestInNestedHwVirtMode(PCCPUMCTX pCtx)
     1395DECLINLINE(bool) CPUMIsGuestInSvmNestedHwVirtMode(PCCPUMCTX pCtx)
    13961396{
    13971397    /*
     
    14001400     */
    14011401    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 */
     1410DECLINLINE(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 */
     1423DECLINLINE(bool) CPUMIsGuestInNestedHwVirtMode(PCCPUMCTX pCtx)
     1424{
     1425    return CPUMIsGuestInSvmNestedHwVirtMode(pCtx) || CPUMIsGuestInVmxNestedHwVirtMode(pCtx);
    14031426}
    14041427#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette