pub fn write_boot_params(world_id: u64, gpa: u64) -> Result<(), VmError>Expand description
Writes the guest boot-parameter block at gpa.
The 1024-byte block (s9vm::bootparams) is the hand-off structure a real
operating-system guest expects: a physical memory map derived from the
world’s mapped regions, the ACPI RSDP address, the console device and the
boot flags. gpa must be page aligned and already mapped in the world; the
block is copied through the HHDM like the boot-information page.
Region classification: write-back RAM that does not overlap a device window
is USABLE; anything mapped with a non-default memory type or overlapping
the console/block/network/APIC windows is MMIO; the firmware window
(ACPI_GPA..ACPI_GPA + acpi::MAX_IMAGE_LEN) is ACPI_RECLAIMABLE. Adjacent
ranges of the same kind are merged; if more than the block capacity remain,
the map is truncated (logged) rather than refusing to boot the guest.