Skip to main content

Crate axvm_types

Crate axvm_types 

Source
Expand description

Shared base types for AxVM and virtualization capability components.

This crate intentionally contains only small value types and aliases. It is not a host capability API and must not depend on any OS-specific crate.

Structs§

GuestPhysAddr
Guest physical address.
GuestVirtAddr
Guest virtual address.
HostAddressAssignment
One architecture-owned host address assignment without a firmware node.
HostDeviceAssignment
One host-firmware device assignment normalized before VM planning.
HostPortAssignment
One architecture-owned host I/O port assignment.
IrqLineId
Identifier of an interrupt line within a virtual machine.
MappingFlags
Generic memory mapping permissions and attributes exchanged between AxVM components.
NestedPageFaultInfo
Information about a nested guest page-table fault.
NestedPagingConfig
Architecture-specific nested paging configuration selected by AxVM.
Port
The port number of an x86 I/O operation.
ReservedAddressConfig
A guest physical address range reserved from default passthrough mapping.
SysRegAddr
A system register address.
VmMemConfig
Configuration for a virtual machine memory region.

Enums§

AccessWidth
The width of a guest bus access.
AddressSpacePolicy
Guest physical address space population policy.
InterruptTriggerMode
Interrupt trigger mode.
VMBootProtocol
Describes how a guest VM should enter its boot image.
VMType
A part of AxVMConfig, which represents guest VM type.
VmBackendError
Failures reported by an architecture virtualization backend.
VmExit
Legacy/common normalized VM event.
VmMemMappingType
The type of memory mapping used for VM memory regions.
VmVcpuState
Execution state of an AxVM-owned vCPU wrapper.

Constants§

MAX_VCPU_NUM
The maximum number of virtual CPUs supported in a virtual machine.

Traits§

VmArchPerCpuOps
Architecture-specific per-CPU virtualization state consumed by AxVM.
VmArchVcpuOps
Architecture-specific vCPU operations consumed by AxVM.

Type Aliases§

GuestPhysAddrRange
Guest physical address range.
GuestVirtAddrRange
Guest virtual address range.
HostPhysAddr
Host physical address.
HostVirtAddr
Host virtual address.
InterruptVector
Interrupt vector number injected into a guest.
VCpuId
Virtual CPU identifier within a VM.
VCpuSet
A set of virtual CPUs.
VMId
Virtual machine identifier.
VmBackendResult
Result returned by architecture virtualization backends.