VirtualBox

忽略:
時間撮記:
2021-8-11 下午09:35:56 (4 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
146250
訊息:

VMM,VMMDev: Force 32-byte alignment of PDMCRITSECTRW so all members that are being updated atomically are in the same cacheline. This also ensures that the 128-bit union is correctly aligned. bugref:6695

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/include/IOMInternal.h

    r90347 r90638  
    384384typedef struct IOM
    385385{
     386    /** Lock serializing EMT access to IOM. */
     387#ifdef IOM_WITH_CRIT_SECT_RW
     388    PDMCRITSECTRW                   CritSect;
     389#else
     390    PDMCRITSECT                     CritSect;
     391#endif
     392
    386393    /** @name I/O ports
    387394     * @note The updating of these variables is done exclusively from EMT(0).
     
    438445    /** @} */
    439446
    440 
    441     /** Lock serializing EMT access to IOM. */
    442 #ifdef IOM_WITH_CRIT_SECT_RW
    443     PDMCRITSECTRW                   CritSect;
    444 #else
    445     PDMCRITSECT                     CritSect;
    446 #endif
    447 
    448447    /** @name I/O Port statistics.
    449448     * @{ */
     
    470469    /** @} */
    471470} IOM;
     471#ifdef IOM_WITH_CRIT_SECT_RW
     472AssertCompileMemberAlignment(IOM, CritSect, 32);
     473#endif
    472474/** Pointer to IOM instance data. */
    473475typedef IOM *PIOM;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette