Skip to main content

Module qemu

Module qemu 

Source
Expand description

QEMU full machine emulation management QEMU backend for Petri. Currently only supports Aarch64 CPU emulation on Linux x64 hosts, but could be modified to support more qemu-system-arch configurations in the future.

Modules§

devices
QEMU device configurations.

Structs§

QemuPetriBackend
The QEMU Petri backend
QemuPetriConfig
QEMU-specific emulator configuration.
QemuPetriRuntime
Resources needed at runtime for a QEMU Petri VM

Constants§

EXTRA_DEVICE_ADDR_BASE
First PCI device number (addr=) used for extra-device root ports.
SHARE_9P_MOUNT_TAG
Mount tag for the host 9P share

Functions§

build_qemu_command
Build the QEMU command line for a TCG launch.
child_pipe_to_file
Convert a child process’s stdout/stderr pipe into a std::fs::File so it can be wrapped in a [PolledPipe]. The owned-handle type differs by platform, but the conversion is otherwise identical.