upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorLogan <Logan@cattn.dev>2026-11-23 12:01:48 -0500
committerLogan <Logan@cattn.dev>2026-11-23 12:01:49 -0500
commita07c8c0e895dd8c2755171bdda9b78ef75b65a38 (patch)
treeaccb540ad28d89f086f733c3a2115bc86c81d75a /runtime/src/main.cpp
parent37398f98d91ec6992d5621e9f4fdef64d59dc09b (diff)
xmem: commit physical pages on first touch, not when they are allocated
XMemAllocatePhysicalPages backed each call with one SEC_COMMIT section, so the title's ~6.1 GiB page-pool request after boot stop 17 was charged in full at once and fails with ERROR_COMMITMENT_LIMIT on a 16 GB machine. Mapping the pages right away (as the title does) would charge most of it within seconds too, so the commit now follows first access. The section is SEC_RESERVE. A vectored handler commits the faulting 64 KiB page through a reserve-only view of the whole section when the address lies in a live mapping, so every view of that page sees it. Faults on committed pages whose protection forbids the access, and faults outside the mapped pages, go on to the next handler, and a failed commit is not swallowed. rt::xmem::commit_physical_range commits a range up front for shims that hand guest memory to the kernel. Reported by controldebils and rafaelpssz in #7333.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions