Commit Graph
2 Commits
Author SHA1 Message Date
Dean Galvin e3b5192cb4 fix(libkernel): map PRT-allocated AMM pages through the pool staging
_ammAllocatePrt took pool pages one at a time and mapped and recorded them run by run, so a failure on run k lost the pool pages of runs k to n. It now maps the unbacked part through AmmPool::MapScattered and returns the range to the reservation if that throws, and the unused _takePoolPages is gone.
2026-10-27 23:41:47 +13:00
Dean Galvin 77c978e318 test(libkernel): fail every allocation of a scattered AMM map in turn
Fail each allocation of a map from a fragmented pool, a map whose host call fails after each run, and a page insertion, and check that the pool and the page records are unchanged after every failure and that a map of one page more than the pool holds is still refused.
2026-10-27 23:29:59 +13:00