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

Create an default IoManager with empty IO member.

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 registered
  • resources: 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 registered
  • resources: 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 registered
  • resources: 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.

Trait Implementations

Type of the objects held by the bus.

Return a reference to the bus.

Return a mutable reference to the bus.

Type of the objects held by the bus.

Return a reference to the bus.

Return a mutable reference to the bus.

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.