Crate dbs_boot

Source
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§

BootParamsWrapper
Boot parameters wrapper for ByteValue trait
InitrdConfig
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.