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