Page MenuHomeFreeBSD

kboot: Keep track of what's used in the segment
ClosedPublic

Authored by imp on Feb 1 2023, 6:24 AM.
Tags
None
Referenced Files
F102448298: D38315.diff
Tue, Nov 12, 10:22 AM
Unknown Object (File)
Sat, Nov 9, 8:26 AM
Unknown Object (File)
Sat, Oct 19, 12:40 PM
Unknown Object (File)
Sat, Oct 19, 12:40 PM
Unknown Object (File)
Sat, Oct 19, 12:40 PM
Unknown Object (File)
Sat, Oct 19, 12:40 PM
Unknown Object (File)
Sat, Oct 19, 12:17 PM
Unknown Object (File)
Fri, Oct 18, 5:22 AM
Subscribers

Details

Summary

Keep track of how much is used in the segment as we allocate it to the
application. Set memsz to 0 first, and increment it as used. Adjust the
bufsz before we call kexec so the kernel copies the right amount (it's
an error for bufsz to be bigger than memsz, so we set them == when we
retrieve the segment). Make sure we round to the page size, otherwise
kexec_load gets cranky.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 49385
Build 46275: arc lint + arc unit

Event Timeline

imp requested review of this revision.Feb 1 2023, 6:24 AM

rebase / refactor / redo

This revision is now accepted and ready to land.Feb 2 2023, 4:44 PM
This revision was automatically updated to reflect the committed changes.