diff --git a/vmm/src/device_tree.rs b/vmm/src/device_tree.rs index 187d1f192..c062db683 100644 --- a/vmm/src/device_tree.rs +++ b/vmm/src/device_tree.rs @@ -15,6 +15,8 @@ pub struct DeviceNode { pub children: Vec, #[serde(skip)] pub migratable: Option>>, + #[cfg(feature = "pci_support")] + pub pci_bdf: Option, } impl DeviceNode { @@ -25,6 +27,8 @@ impl DeviceNode { parent: None, children: Vec::new(), migratable, + #[cfg(feature = "pci_support")] + pci_bdf: None, } } }