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 <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2025-01-28 17:04:04 +00:00
parent f389b05f20
commit 1e90fc38de
2 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ impl<T> DeviceConfigInfo<T>
where where
T: ConfigItem + Clone, T: ConfigItem + Clone,
{ {
/// Create a new instance of ['DeviceInfoGroup']. /// Create a new instance of ['DeviceConfigInfo'].
pub fn new(config: T) -> Self { pub fn new(config: T) -> Self {
DeviceConfigInfo { DeviceConfigInfo {
config, 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<Arc<dyn DeviceIo>>) -> Self { pub fn new_with_device(config: T, device: Option<Arc<dyn DeviceIo>>) -> Self {
DeviceConfigInfo { config, device } DeviceConfigInfo { config, device }
} }

View File

@ -729,10 +729,10 @@ mod tests {
use vm_memory::{GuestAddress, GuestMemoryMmap, MmapRegion}; use vm_memory::{GuestAddress, GuestMemoryMmap, MmapRegion};
use super::*; use super::*;
use crate::config_manager::DeviceInfoGroup; use crate::config_manager::DeviceConfigInfo;
use crate::test_utils::tests::create_vm_for_test; use crate::test_utils::tests::create_vm_for_test;
type VfioDeviceInfo = DeviceInfoGroup<VfioDeviceConfigInfo, VfioDeviceError>; type VfioDeviceInfo = DeviceConfigInfo<VfioDeviceConfigInfo, VfioDeviceError>;
fn get_vfio_dev_mgr() -> VfioDeviceMgr { fn get_vfio_dev_mgr() -> VfioDeviceMgr {
let kvm = Kvm::new().unwrap(); let kvm = Kvm::new().unwrap();