Struct vm_device::device_manager::IoManager [−][src]
pub struct IoManager { /* fields omitted */ }
Expand description
System IO manager serving for all devices management and VM exit handling.
Implementations
Register a new MMIO device with its allocated resources. VMM is responsible for providing the allocated resources to virtual device.
Arguments
device
: device instance object to be registeredresources
: resources that this device owns, might include port I/O and memory-mapped I/O ranges, irq number, etc.
Register a new PIO device with its allocated resources. VMM is responsible for providing the allocated resources to virtual device.
Arguments
device
: device instance object to be registeredresources
: resources that this device owns, might include port I/O and memory-mapped I/O ranges, irq number, etc.
Register a new MMIO + PIO device with its allocated resources. VMM is responsible for providing the allocated resources to virtual device.
Arguments
device
: device instance object to be registeredresources
: resources that this device owns, might include port I/O and memory-mapped I/O ranges, irq number, etc.
Deregister a device from IoManager
, e.g. users specified removing.
VMM pre-fetches the resources e.g. dev.get_assigned_resources()
VMM is responsible for freeing the resources. Returns the number
of deregistered devices.
Arguments
resources
: resources that this device owns, might include port I/O and memory-mapped I/O ranges, irq number, etc.