VirtualBox

Ignore:
Timestamp:
Mar 24, 2025 9:16:43 AM (7 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168125
Message:

VMM: Introduce VMM_HOST_PAGE_SIZE_DYNAMIC, HOST_PAGE_SIZE_DYNAMIC, and HOST_PAGE_SHIFT_DYNAMIC, bugref:10391

HOST_PAGE_SIZE_DYNAMIC either resolves to HOST_PAGE_SIZE or calls RTSystemGetPageSize() on hosts where
the system page size is not known during build time (linux.arm64 for now).
HOST_PAGE_SHIFT_DYNAMIC is the same for the page shift.

This allows building VMM libraries which are agnostic to the host page size (at the cost of a slightly
larger overhead).

Currently enabled only on linux.arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PDMInternal.h

    r108132 r108708  
    9797#define PDM_MAX_DEVICE_INSTANCE_SIZE_R3   _8M
    9898/** The maximum size for the DBGF tracing tracking structure allocated for each device. */
    99 #define PDM_MAX_DEVICE_DBGF_TRACING_TRACK HOST_PAGE_SIZE
     99#define PDM_MAX_DEVICE_DBGF_TRACING_TRACK HOST_PAGE_SIZE_DYNAMIC
    100100
    101101
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