gpu: Add ColdPlug of VFIO devices with devManager

If we have a VFIO device and cold-plug is enabled
we mark each device as ColdPlug=true and let the VFIO
module do the attaching.

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
Zvonko Kaiser
2023-04-21 08:56:47 +00:00
parent e2b5e7f73b
commit c8cf7ed3bc
7 changed files with 61 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ func TestIsVFIO(t *testing.T) {
}
for _, d := range data {
isVFIO := isVFIO(d.path)
isVFIO := IsVFIO(d.path)
assert.Equal(t, d.expected, isVFIO)
}
}