VirtualBox

Changeset 87777 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 17, 2021 1:48:25 PM (4 years ago)
Author:
vboxsync
Message:

VMM/TRPM: Reduced the VM structure footprint by > 3K and eliminated a hyper heap allocation. bugref:9517

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r87594 r87777  
    13011301        struct TRPM s;
    13021302#endif
    1303         uint8_t     padding[5248];      /* multiple of 64 */
     1303        uint8_t     padding[2048];      /* multiple of 64 */
    13041304    } trpm;
    13051305
     
    14631463
    14641464    /** Padding for aligning the structure size on a page boundrary. */
    1465     uint8_t         abAlignment2[4568 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT];
     1465    uint8_t         abAlignment2[3672 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT];
    14661466
    14671467    /* ---- end small stuff ---- */
  • trunk/include/VBox/vmm/vm.mac

    r87330 r87777  
    124124    .pgm                    resb 21120
    125125    .hm                     resb 5504
    126     .trpm                   resb 5248
     126    .trpm                   resb 2048
    127127    .selm                   resb 768
    128128    .mm                     resb 192
     
    140140    .R0Stats                resb 64
    141141
    142     .abAlignment2           resb 4568 - RTR0PTR_CB * VMM_MAX_CPU_COUNT
    143 
    144     alignb RTR0PTR_CB * VMM_MAX_CPU_COUNT ; ASSUMES VMM_MAX_CPU_COUNT is a power of two.
     142    times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 4095) & ~4095) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
    145143    .apCpusR3               RTR3PTR_RES VMM_MAX_CPU_COUNT
    146144    alignb 4096
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