Expand description
Basic traits and structures for emulated devices in ArceOS hypervisor.
This crate contains:
BaseDeviceOpstrait: The trait that all emulated devices must implement.EmuDeviceTypeenum: Enumeration representing the type of emulator devices. (Already moved toaxvmconfigcrate.)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 BaseDeviceOpsis the trait that all emulated devices must implement.
Functions§
- map_
device_ of_ type - Determines whether the given device is of type
Tand calls the provided functionfwith a reference to the device if it is.
Trait Aliases§
- Base
Mmio Device Ops BaseMmioDeviceOpsis the trait that all emulated MMIO devices must implement. It is a trait alias ofBaseDeviceOpswithGuestPhysAddrRangeas the address range.- Base
Port Device Ops BasePortDeviceOpsis the trait that all emulated port devices must implement. It is a trait alias ofBaseDeviceOpswithPortRangeas the address range.- Base
SysReg Device Ops BaseSysRegDeviceOpsis the trait that all emulated system register devices must implement. It is a trait alias ofBaseDeviceOpswithSysRegAddrRangeas the address range.