Merge pull request #10931 from zvonkok/iommufd-fix

gpu: IOMMUFD fix
This commit is contained in:
Zvonko Kaiser 2025-02-25 12:50:24 -05:00 committed by GitHub
commit 04c56a0aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,