Expand description
Constants, Structs and Utilities to setup boot environment for virtual machines.
Modules§
- bootparam
- Guest boot parameters used for config guest information.
- layout
- Magic addresses externally used to lay out x86_64 VMs.
- mpspec
- Structure definitions for SMP machines following the Intel Multiprocessing Specification 1.1 and 1.4. Structure definitions for SMP machines following the Intel Multiprocessing Specification 1.1 and 1.4.
- mptable
- MP Table configurations used for defining VM boot status. MP Table configurations used for defining VM boot status.
Structs§
- Boot
Params Wrapper - Boot parameters wrapper for ByteValue trait
- Initrd
Config - Type for passing information about the initrd in the guest memory.
Enums§
- Error
- Errors thrown while configuring x86_64 system.
Constants§
- PAGE_
SIZE - Default (smallest) memory page size for the supported architectures.
Functions§
- add_
e820_ entry - Add an e820 region to the e820 map. Returns Ok(()) if successful, or an error if there is no space left in the map.
- get_
descriptor_ config_ info - Get information to configure GDT/IDT.
- get_
kernel_ start - Returns the memory address where the kernel could be loaded.
- initrd_
load_ addr - Returns the memory address where the initrd could be loaded.
- setup_
identity_ mapping - Initialize the 1:1 identity mapping table for guest memory range [0..1G).
Type Aliases§
- Result
- Specialized std::result::Result for boot related operations.