VirtualBox

Changeset 97018 in vbox for trunk/include


Ignore:
Timestamp:
Oct 5, 2022 9:47:04 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEMAllCImplVmxInstr.cpp: Converted all VMVEXITINFO initialization to use initializers (via macros) and not call memset/RT_ZERO. Code size reduced a bit in this file.

File:
1 edited

Legend:

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

    r97005 r97018  
    38443844typedef const VMXVEXITINFO *PCVMXVEXITINFO;
    38453845AssertCompileMemberAlignment(VMXVEXITINFO, u64Qual, 8);
     3846
     3847/** Initialize a VMXVEXITINFO structure from only an exit reason. */
     3848#define VMXVEXITINFO_INIT_ONLY_REASON(a_uReason) \
     3849    { (a_uReason), 0, { 0 }, VMXINSTRID_NONE, 0, 0, 0, 0, 0 }
     3850
     3851/** Initialize a VMXVEXITINFO structure from exit reason and instruction length (no info). */
     3852#define VMXVEXITINFO_INIT_WITH_INSTR_LEN(a_uReason, a_cbInstr) \
     3853    { (a_uReason), (a_cbInstr), { 0 }, VMXINSTRID_NONE, 0, 0, 0, 0, 0 }
     3854
     3855/** Initialize a VMXVEXITINFO structure from exit reason and exit qualifier. */
     3856#define VMXVEXITINFO_INIT_WITH_QUALIFIER(a_uReason, a_uQualifier) \
     3857    { (a_uReason), 0, { 0 }, VMXINSTRID_NONE, (a_uQualifier), 0, 0, 0, 0 }
    38463858
    38473859/** Initialize a VMXVEXITINFO structure from exit reason, exit qualifier,
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