Expand description
s9vm : guest boot information page.
A world starts with a guest that must be told what its machine looks like: which memory ranges are usable, which virtual devices exist, where their MMIO pages are and which interrupt lines they use. Firmware (ACPI) is the long-term answer for a full operating system; this page is the direct, minimal interface for s9vm’s own guests and for early bring-up.
The layout is a fixed 512-byte little-endian structure with a magic, a version, bounds-checked counts and a fixed number of slots, so it can be parsed by a guest without allocating and cannot describe itself outside the page. Encoding and decoding live here as pure code and are host-tested; the kernel only computes the contents and copies them into guest memory.
Modules§
- device_
kind - Kind of a device.
- flags
- Flags.
- memory_
kind - Kind of a memory range.
Structs§
- Boot
Info - Boot information page.
- Device
Entry - One device.
- Memory
Entry - One memory range.
Enums§
- Boot
Info Error - Decoding error.
Constants§
- MAGIC
- Magic value: the ASCII bytes
S9VMBOOTread as a little-endianu64. - MAX_
DEVICE_ ENTRIES - Maximum number of devices described.
- MAX_
MEMORY_ ENTRIES - Maximum number of memory ranges described.
- SIZE
- Total size of the page.
- VERSION
- Layout version.