Expand description
Basic traits and structures for emulated devices in ArceOS hypervisor.
This crate contains:
BaseDeviceOps
trait: The trait that all emulated devices must implement.EmuDeviceType
enum: Enumeration representing the type of emulator devices. (Already moved toaxvmconfig
crate.)EmulatedDeviceConfig
: Configuration structure for device initialization.
Structs§
- Emulated
Device Config - Represents the configuration of an emulated device for a virtual machine.
Enums§
- EmuDevice
Type - The type of Emulated Device.
Traits§
- Base
Device Ops BaseDeviceOps
is the trait that all emulated devices must implement.
Functions§
- map_
device_ of_ type - Determines whether the given device is of type
T
and calls the provided functionf
with a reference to the device if it is.
Trait Aliases§
- Base
Mmio Device Ops BaseMmioDeviceOps
is the trait that all emulated MMIO devices must implement. It is a trait alias ofBaseDeviceOps
withGuestPhysAddrRange
as the address range.- Base
Port Device Ops BasePortDeviceOps
is the trait that all emulated port devices must implement. It is a trait alias ofBaseDeviceOps
withPortRange
as the address range.- Base
SysReg Device Ops BaseSysRegDeviceOps
is the trait that all emulated system register devices must implement. It is a trait alias ofBaseDeviceOps
withSysRegAddrRange
as the address range.