From 1e90fc38de8f9891db095a6bf4ed704d9427465c Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 28 Jan 2025 17:04:04 +0000 Subject: [PATCH] dragonball: Fix incorrect reference There were references to `config_manager::DeviceInfoGroup` which doesn't exist, so I guess it means `DeviceConfigInfo` instead, so update them Signed-off-by: stevenhorsman --- src/dragonball/src/config_manager.rs | 4 ++-- src/dragonball/src/device_manager/vfio_dev_mgr/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dragonball/src/config_manager.rs b/src/dragonball/src/config_manager.rs index ff74fb925a..428ccecbf4 100644 --- a/src/dragonball/src/config_manager.rs +++ b/src/dragonball/src/config_manager.rs @@ -165,7 +165,7 @@ impl DeviceConfigInfo where T: ConfigItem + Clone, { - /// Create a new instance of ['DeviceInfoGroup']. + /// Create a new instance of ['DeviceConfigInfo']. pub fn new(config: T) -> Self { DeviceConfigInfo { config, @@ -173,7 +173,7 @@ where } } - /// Create a new instance of ['DeviceInfoGroup'] with optional device. + /// Create a new instance of ['DeviceConfigInfo'] with optional device. pub fn new_with_device(config: T, device: Option>) -> Self { DeviceConfigInfo { config, device } } diff --git a/src/dragonball/src/device_manager/vfio_dev_mgr/mod.rs b/src/dragonball/src/device_manager/vfio_dev_mgr/mod.rs index d70106e27f..893788c401 100644 --- a/src/dragonball/src/device_manager/vfio_dev_mgr/mod.rs +++ b/src/dragonball/src/device_manager/vfio_dev_mgr/mod.rs @@ -729,10 +729,10 @@ mod tests { use vm_memory::{GuestAddress, GuestMemoryMmap, MmapRegion}; use super::*; - use crate::config_manager::DeviceInfoGroup; + use crate::config_manager::DeviceConfigInfo; use crate::test_utils::tests::create_vm_for_test; - type VfioDeviceInfo = DeviceInfoGroup; + type VfioDeviceInfo = DeviceConfigInfo; fn get_vfio_dev_mgr() -> VfioDeviceMgr { let kvm = Kvm::new().unwrap();