HomeFreeBSD

amd64: do not leak pcpu pages

Description

amd64: do not leak pcpu pages

Do not preallocate pcpu area backing pages on early startup, only
allocate enough of KVA for pcpu[MAXCPU] and the page for BSP. Other
pages are allocated after we know the number of cpus and their
assignments to the domains.

PCPUs are not accessed until they are initialized, which happens on AP
startup.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D39945

Details

Provenance
kibAuthored on May 3 2023, 9:41 AM
Reviewer
markj
Differential Revision
D39945: amd64: do not leak pcpu pages
Parents
rGe704f88f3d92: amd64: initialize APs kpmap_store in init_secondary()
Branches
Unknown
Tags
Unknown