mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 03:48:05 +00:00
runtime-rs: fix vfio device name combination issue
Fixes #10576 Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
parent
eab48c9884
commit
5dba680afb
@ -438,7 +438,7 @@ impl VfioDevice {
|
||||
let mut hostdev: HostDevice = self
|
||||
.set_vfio_config(iommu_devs_path.clone(), device)
|
||||
.context("set vfio config failed")?;
|
||||
let dev_prefix = self.get_vfio_prefix();
|
||||
let dev_prefix = format!("{}_{}", self.get_vfio_prefix(), &vfio_group);
|
||||
hostdev.hostdev_id = make_device_nameid(&dev_prefix, index, MAX_DEV_ID_SIZE);
|
||||
|
||||
self.devices.push(hostdev);
|
||||
|
Loading…
Reference in New Issue
Block a user