vmm: device_manager: Generalise NoAvailableVfioDeviceName

We now support assigning device ids for VFIO and virtio-pci devices so
this error can be generalised.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-04-15 17:58:49 +01:00 committed by Samuel Ortiz
parent 5bab9c3894
commit 444e5c2a04

View File

@ -233,9 +233,8 @@ pub enum DeviceManagerError {
/// Missing PCI bus.
NoPciBus,
/// Could not find an available VFIO device name.
#[cfg(feature = "pci_support")]
NoAvailableVfioDeviceName,
/// Could not find an available device name.
NoAvailableDeviceName,
/// Missing PCI device.
MissingPciDevice,
@ -1648,7 +1647,7 @@ impl DeviceManager {
break;
}
}
Err(DeviceManagerError::NoAvailableVfioDeviceName)
Err(DeviceManagerError::NoAvailableDeviceName)
}
#[cfg(feature = "pci_support")]