aboutsummaryrefslogtreecommitdiff
path: root/libcontainerd
diff options
context:
space:
mode:
authorPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>2022-03-13 20:00:22 +1100
committerPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>2022-03-27 13:26:47 +1100
commit31e1fec950eb702f433f2893bb8096adb6e7538d (patch)
tree7d8c93511129a4a609e4b091e031dde682303662 /libcontainerd
parentcb07afa3cc1cbc7adfab3ac65d92c497a3271b50 (diff)
Suport vpci-class-guid in the non-containerd backend
IDType `vpci-class-guid` is a synonym of `class`. Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
Diffstat (limited to 'libcontainerd')
-rw-r--r--libcontainerd/local/local_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcontainerd/local/local_windows.go b/libcontainerd/local/local_windows.go
index d9c7b7a6c7..08c882b431 100644
--- a/libcontainerd/local/local_windows.go
+++ b/libcontainerd/local/local_windows.go
@@ -313,8 +313,8 @@ func (c *client) createWindows(id string, spec *specs.Spec, runtimeOptions inter
}
for _, d := range spec.Windows.Devices {
// Per https://github.com/microsoft/hcsshim/blob/v0.9.2/internal/uvm/virtual_device.go#L17-L18,
- // this represents an Interface Class GUID.
- if d.IDType != "class" {
+ // these represent an Interface Class GUID.
+ if d.IDType != "class" && d.IDType != "vpci-class-guid" {
return errors.Errorf("device assignment of type '%s' is not supported", d.IDType)
}
configuration.AssignedDevices = append(configuration.AssignedDevices, hcsshim.AssignedDevice{InterfaceClassGUID: d.ID})