vmm: Error for PciDeviceError and PciRootError

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>

On-behalf-of: SAP <philipp.schuster@sap.com>
This commit is contained in:
Philipp Schuster
2025-05-13 16:25:46 +02:00
committed by Rob Bradford
parent b2993fb2fa
commit a007b750ff
5 changed files with 50 additions and 74 deletions

View File

@@ -265,11 +265,11 @@ pub enum DeviceManagerError {
/// Cannot allocate PCI BARs
#[error("Cannot allocate PCI BARs: {0}")]
AllocateBars(pci::PciDeviceError),
AllocateBars(#[source] pci::PciDeviceError),
/// Could not free the BARs associated with a PCI device.
#[error("Could not free the BARs associated with a PCI device: {0}")]
FreePciBars(pci::PciDeviceError),
FreePciBars(#[source] pci::PciDeviceError),
/// Cannot register ioevent.
#[error("Cannot register ioevent: {0}")]
@@ -285,7 +285,7 @@ pub enum DeviceManagerError {
/// Cannot add PCI device
#[error("Cannot add PCI device")]
AddPciDevice(pci::PciRootError),
AddPciDevice(#[source] pci::PciRootError),
/// Cannot open persistent memory file
#[error("Cannot open persistent memory file")]