mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 09:49:35 +00:00
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:
parent
f389b05f20
commit
1e90fc38de
@ -165,7 +165,7 @@ impl<T> DeviceConfigInfo<T>
|
||||
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<Arc<dyn DeviceIo>>) -> Self {
|
||||
DeviceConfigInfo { config, device }
|
||||
}
|
||||
|
@ -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<VfioDeviceConfigInfo, VfioDeviceError>;
|
||||
type VfioDeviceInfo = DeviceConfigInfo<VfioDeviceConfigInfo, VfioDeviceError>;
|
||||
|
||||
fn get_vfio_dev_mgr() -> VfioDeviceMgr {
|
||||
let kvm = Kvm::new().unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user