VirtualBox

Changeset 49283 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Oct 25, 2013 8:49:06 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Macro naming fix and use RT_BOOL.

File:
1 edited

Legend:

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

    r49000 r49283  
    14771477 * @{
    14781478 */
    1479 #define VMX_ENTRY_INTERRUPTION_INFO_VALID(a)                      ((a) & RT_BIT(31))
     1479#define VMX_ENTRY_INTERRUPTION_INFO_IS_VALID(a)                   RT_BOOL((a) & RT_BIT(31))
    14801480#define VMX_ENTRY_INTERRUPTION_INFO_TYPE_SHIFT                    8
    14811481#define VMX_ENTRY_INTERRUPTION_INFO_TYPE(a)                       ((a >> VMX_ENTRY_INTERRUPTION_INFO_TYPE_SHIFT) & 7)
     
    14901490#define VMX_EXIT_INTERRUPTION_INFO_TYPE(a)                        (((a) >> VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT) & 7)
    14911491#define VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_VALID               RT_BIT(11)
    1492 #define VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_IS_VALID(a)         ((a) & VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_VALID)
     1492#define VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_IS_VALID(a)         RT_BOOL((a) & VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_VALID)
    14931493#define VMX_EXIT_INTERRUPTION_INFO_NMI_UNBLOCK(a)                 ((a) & RT_BIT(12))
    14941494#ifdef VBOX_WITH_OLD_VTX_CODE
     
    14961496#endif
    14971497#define VMX_EXIT_INTERRUPTION_INFO_VALID                          RT_BIT(31)
    1498 #define VMX_EXIT_INTERRUPTION_INFO_IS_VALID(a)                    ((a) & RT_BIT(31))
     1498#define VMX_EXIT_INTERRUPTION_INFO_IS_VALID(a)                    RT_BOOL((a) & RT_BIT(31))
    14991499/** Construct an irq event injection value from the exit interruption info value (same except that bit 12 is reserved). */
    15001500#define VMX_VMCS_CTRL_ENTRY_IRQ_INFO_FROM_EXIT_INT_INFO(a)        ((a) & ~RT_BIT(12))
     
    15191519#define VMX_IDT_VECTORING_INFO_TYPE(a)                            (((a) >> VMX_IDT_VECTORING_INFO_TYPE_SHIFT) & 7)
    15201520#define VMX_IDT_VECTORING_INFO_ERROR_CODE_VALID                   RT_BIT(11)
    1521 #define VMX_IDT_VECTORING_INFO_ERROR_CODE_IS_VALID(a)             ((a) & VMX_IDT_VECTORING_INFO_ERROR_CODE_VALID)
     1521#define VMX_IDT_VECTORING_INFO_ERROR_CODE_IS_VALID(a)             RT_BOOL((a) & VMX_IDT_VECTORING_INFO_ERROR_CODE_VALID)
    15221522#define VMX_IDT_VECTORING_INFO_VALID(a)                           ((a) & RT_BIT(31))
    15231523#define VMX_ENTRY_INT_INFO_FROM_EXIT_IDT_INFO(a)                  ((a) & ~RT_BIT(12))
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