VirtualBox

Changeset 97019 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 5, 2022 10:12:03 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM,HMVMXR0: Converted all VMXVEXITEVENTINFO initialization from RT_ZERO/memset to initializers. Slight code size reduction.

File:
1 edited

Legend:

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

    r97018 r97019  
    39423942/** Pointer to a const VMXVEXITEVENTINFO struct. */
    39433943typedef const VMXVEXITEVENTINFO *PCVMXVEXITEVENTINFO;
     3944
     3945/** Initialize a VMXVEXITEVENTINFO. */
     3946#define VMXVEXITEVENTINFO_INIT(a_uExitIntInfo, a_uExitIntErrCode, a_uIdtVectoringInfo, a_uIdtVectoringErrCode) \
     3947    { (a_uExitIntInfo), (a_uExitIntErrCode), (a_uIdtVectoringInfo), (a_uIdtVectoringErrCode) }
     3948
     3949/** Initialize a VMXVEXITEVENTINFO with VM-exit interruption info and VM-exit
     3950 *  interruption error code. */
     3951#define VMXVEXITEVENTINFO_INIT_ONLY_INT(a_uExitIntInfo, a_uExitIntErrCode) \
     3952    VMXVEXITEVENTINFO_INIT(a_uExitIntInfo, a_uExitIntErrCode, 0, 0)
     3953
     3954/** Initialize a VMXVEXITEVENTINFO with IDT vectoring info and IDT
     3955 *  vectoring error code. */
     3956#define VMXVEXITEVENTINFO_INIT_ONLY_IDT(a_uIdtVectoringInfo, a_uIdtVectoringErrCode) \
     3957    VMXVEXITEVENTINFO_INIT(0, 0, a_uIdtVectoringInfo, a_uIdtVectoringErrCode)
    39443958
    39453959/**
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