VirtualBox

Changeset 100061 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jun 3, 2023 1:09:25 AM (20 months ago)
Author:
vboxsync
Message:

VMM/IEM: Use IEM_F_X86_CTX_IN_GUEST to increase mojo for non-vm-exit code paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r100059 r100061  
    38343834#define IEM_GET_EFFECTIVE_VVVV(a_pVCpu) \
    38353835    (IEM_IS_64BIT_CODE(a_pVCpu) ? (a_pVCpu)->iem.s.uVex3rdReg : (a_pVCpu)->iem.s.uVex3rdReg & 7)
     3836
     3837
     3838/**
     3839 * Checks if we're executing inside an AMD-V or VT-x guest.
     3840 */
     3841#if defined(VBOX_WITH_NESTED_HWVIRT_VMX) || defined(VBOX_WITH_NESTED_HWVIRT_SVM)
     3842# define IEM_IS_IN_GUEST(a_pVCpu)       RT_BOOL((a_pVCpu)->iem.s.fExec & IEM_F_X86_CTX_IN_GUEST)
     3843#else
     3844# define IEM_IS_IN_GUEST(a_pVCpu)       false
     3845#endif
    38363846
    38373847
Note: See TracChangeset for help on using the changeset viewer.

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