VirtualBox

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


Ignore:
Timestamp:
May 29, 2013 2:27:46 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86080
Message:

VMM/HM: AMD-V bits. Get rid of unnecessary pragma packs and use 'u' instead of 'au64[1]' of the structure sizing.

File:
1 edited

Legend:

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

    r46311 r46314  
    457457 * SVM Event injection structure (EVENTINJ and EXITINTINFO).
    458458 */
    459 #pragma pack(1)
    460459typedef union
    461460{
     
    469468        uint32_t    u32ErrorCode        : 32;
    470469    } n;
    471     uint64_t    au64[1];
     470    uint64_t    u;
    472471} SVMEVENT;
    473 #pragma pack()
    474472
    475473
     
    477475 * SVM Interrupt control structure (Virtual Interrupt Control).
    478476 */
    479 #pragma pack(1)
    480477typedef union
    481478{
     
    494491        uint32_t    u24Reserved         : 24;
    495492    } n;
    496     uint64_t    au64[1];
     493    uint64_t    u;
    497494} SVMINTCTRL;
    498 #pragma pack()
    499 
    500495
    501496/**
    502497 * SVM TLB control structure.
    503498 */
    504 #pragma pack(1)
    505499typedef union
    506500{
     
    511505        uint32_t    u24Reserved         : 24;
    512506    } n;
    513     uint64_t    au64[1];
     507    uint64_t    u;
    514508} SVMTLBCTRL;
    515 #pragma pack()
    516 
    517509
    518510/**
    519511 * SVM IOIO exit structure (EXITINFO1 for IOIO intercepts).
    520512 */
    521 #pragma pack(1)
    522513typedef union
    523514{
     
    537528        uint32_t    u16Port             : 16;
    538529    } n;
    539     uint32_t    au32[1];
     530    uint32_t    u;
    540531} SVMIOIOEXIT;
    541 #pragma pack()
    542532
    543533/**
    544534 * SVM nested paging structure.
    545535 */
    546 #pragma pack(1)
    547536typedef union
    548537{
     
    551540        uint32_t    u1NestedPaging      : 1;             /**< enabled/disabled */
    552541    } n;
    553     uint64_t    au64[1];
     542    uint64_t    u;
    554543} SVMNPCTRL;
    555 #pragma pack()
    556544
    557545/**
    558546 * SVM AVIC.
    559547 */
    560 #pragma pack(1)
    561548typedef union
    562549{
     
    569556    uint64_t    u;
    570557} SVMAVIC;
    571 #pragma pack()
    572558
    573559/**
    574560 * SVM AVIC PHYSICAL_TABLE pointer.
    575561 */
    576 #pragma pack(1)
    577562typedef union
    578563{
     
    586571    uint64_t    u;
    587572} SVMAVICPHYS;
    588 #pragma pack()
    589573
    590574/**
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