vmm: device_manager: Return PciDeviceInfo from a hotplugged device

In order to provide the device name and PCI b/d/f associated with a
freshly hotplugged device, the hotplugging functions from the device
manager return a new structure called PciDeviceInfo.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-06-11 16:48:25 +02:00
committed by Rob Bradford
parent 0bc2b08d3a
commit f08e9b6a73
2 changed files with 28 additions and 15 deletions
+5
View File
@@ -177,6 +177,11 @@ impl AsRawFd for EpollContext {
}
}
pub struct PciDeviceInfo {
pub id: String,
pub bdf: u32,
}
pub fn start_vmm_thread(
vmm_version: String,
http_path: &str,