VirtualBox

Changeset 40740 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 2, 2012 11:54:41 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77217
Message:

SUPDrv: Update GIP data behind a spinlock for online/offline race conditions.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r40667 r40740  
    208208    /** The max CPU ID (RTMpGetMaxCpuId). */
    209209    RTCPUID             idCpuMax;
     210    /** Padding to 8 byte alignment. */
     211    uint16_t            au16Padding1[2];
     212    /** Spinlock protecting the GIP array members. */
     213    RTSPINLOCK          Spinlock;                       /* 144 */
    210214
    211215    /** Padding / reserved space for future data. */
    212     uint32_t            au32Padding1[29];
     216    uint32_t            au32Padding1[26];
    213217
    214218    /** Table indexed by the CPU APIC ID to get the CPU table index. */
  • trunk/include/VBox/sup.mac

    r36262 r40740  
    6363    .u16Padding0                resw 1
    6464    .idCpuMax                   resd 1
    65     .au32Padding1               resd 29
     65    .au16Padding1               resw 2
     66    .Spinlock                   RTR0PTR_RES 1
     67    .au32Padding1               resd 26
    6668    .aiCpuFromApicId            resw 256
    6769    .aiCpuFromCpuSetIdx         resw 256
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