VirtualBox

Changeset 91266 in vbox for trunk/include/VBox/vmm/vm.h


Ignore:
Timestamp:
Sep 15, 2021 10:26:50 PM (3 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Moved CPUIDs and MSRs from the hyper heap and into the VM structure (might not be such a great idea for MSRs actually). bugref:10093

File:
1 edited

Legend:

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

    r91265 r91266  
    12651265        } const ro;
    12661266#endif
    1267         uint8_t     padding[1536];      /* multiple of 64 */
     1267        /** @todo this is rather bloated because of static MSR range allocation.
     1268         *        Probably a good idea to move it to a separate R0 allocation... */
     1269        uint8_t     padding[8832 + 128*8192];    /* multiple of 64 */
    12681270    } cpum;
    12691271
     
    14631465
    14641466    /** Padding for aligning the structure size on a page boundrary. */
    1465     uint8_t         abAlignment2[1240 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT];
     1467    uint8_t         abAlignment2[2136 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT];
    14661468
    14671469    /* ---- end small stuff ---- */
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