mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
commit
04c56a0aaf
@ -224,10 +224,11 @@ func GetDeviceFromVFIODev(device config.DeviceInfo) ([]*config.VFIODev, error) {
|
||||
deviceID := getPCIDeviceProperty(deviceBDF, PCISysFsDevicesDevice)
|
||||
pciClass := getPCIDeviceProperty(deviceBDF, PCISysFsDevicesClass)
|
||||
|
||||
id, err := extractIndex(device.HostPath)
|
||||
i, err := extractIndex(device.HostPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
id := utils.MakeNameID("vfio", device.ID+i, maxDevIDSize)
|
||||
|
||||
vfio := config.VFIODev{
|
||||
ID: id,
|
||||
|
Loading…
Reference in New Issue
Block a user