mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-04 17:02:36 +00:00
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:
parent
5bab9c3894
commit
444e5c2a04
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user