Expand description
Virtual machine architecture support code.
Re-exports§
pub use fdt::apply_device_tree_overlays;pub use fdt::DtbOverlay;pub use serial::add_serial_devices;pub use serial::get_serial_cmdline;pub use serial::set_default_serial_parameters;pub use serial::GetSerialCmdlineError;pub use serial::SERIAL_ADDR;pub use sys::linux::PlatformBusResources;
Modules§
Structs§
- CpuConfig
Arch - Hold the CPU feature configurations that are needed to setup a vCPU.
- CpuSet
- Set of CPU cores.
- Memory
Region Config - Memory region with optional size.
- PciConfig
- General PCI config.
- Pstore
- Runnable
Linux Vm - Holds the elements needed to run a Linux VM. Created by
build_vm. - Smbios
Options - SMBIOS table configuration
- Vcpu
Init Arch - Initial state for x86_64 VCPUs.
- Virtio
Device Stub - The device and optional jail.
- VmComponents
- Holds the pieces needed to build a VM. Passed to
build_vmin theLinuxArchtrait below to create aRunnableLinuxVm.
Enums§
- Device
Registration Error - Errors for device manager.
- FdtPosition
- GdbArch
- Implements
Archfor 64-bit x86 + SSE Extensions. - Load
Image Error - Errors for image loading.
- Vcpu
Affinity - Mapping of guest VCPU threads to host CPU cores.
- VmImage
Traits§
- GdbOps
- Hypervisor
Arch - A trait for managing cpuids for an x86_64 hypervisor and for checking its capabilities.
- IrqChip
Arch - Linux
Arch - Trait which is implemented for each Linux Architecture in order to set up the memory, cpus, and system devices and to boot the kernel.
- Vcpu
Arch - A wrapper around creating and using a VCPU on x86_64.
- VmArch
- A wrapper for using a VM on x86_64 and getting/setting its state.
Functions§
- assign_
pci_ addresses - Ensure all PCI devices have an assigned PCI address.
- configure_
pci_ device - Config a PCI device for used by this vm.
- generate_
pci_ root - Creates a root PCI device for use by this Vm.
- generate_
pci_ 🔒topology - load_
image - Load an image from a file into guest memory.
- load_
image_ high - Load an image from a file into guest memory at the highest possible address.
- parse_
cpu_ 🔒range