Crate linux_kvm

Source
Expand description

This package wraps the lower-level crate linux_io to provide more convenient access to the linux KVM API, which allows you to create and run kernel-managed virtual machines on architectures that support that.

For now this crate is largely just serving as a prototype case for building low-cost safe abstractions on top of linux_io, so it doesn’t support the full KVM API. Hopefully over time it’ll gain enough to be useful.

Modules§

ioctl
ioctl constants for use with linux_io::File::ioctl.
raw
Raw data types for use with various KVM ioctl requests.

Structs§

Kvm
Represents the kernel’s whole KVM subsystem.
MemoryRegion
A page-aligned host memory region that can be mapped into the guest memory space of a VirtualMachine.
VirtualCpu
A virtual CPU belonging to a VirtualMachine.
VirtualCpuRunner
Wraps a VirtualCpu with some extra state required to run it.
VirtualMachine
An individual virtual machine created through a Kvm object.

Type Aliases§

Result
Represents a result from a kernel call that might fail.