KSTATE as [de]serializer of kernel's state
summary
Proposal creates a common framework KSTATE to serialize kernel structs by describing preserved fields and storing field offsets so generic code can copy them out and back; on-disk binary has header, state ID, instance ID, data size and the field blobs. V3 on Alchemar exists as proof of concept; complex scattered state (MFD, address space, file structs) falls back to one blob. Design debates cover per-field versions, using integers vs strings for IDs, and a planned MFD port to validate the approach.
AI-written summary · about
chapters (8)
- 0:00Introduction to KSTATE
- 1:04Framework for serializing kernel structs
- 3:18Current proof of concept and future plans
- 4:24Complex state structures like MFD
- 6:16Discussion on state ID types
- 8:26MFD state complexity and alternatives
- 10:35Instance ID design and generalization
- 13:13U64 vs string identifiers debate
