From 6068faf40bb43cf303aabf6b9e1bb5aa5515c8d5 Mon Sep 17 00:00:00 2001 From: Guoqiang Ding Date: Mon, 4 Dec 2023 11:40:51 +0800 Subject: [PATCH] runtime: failed to run in the case of ColdPlugVFIO Add the missing port type in the DeviceInfo. Fixes: #9014 Signed-off-by: Guoqiang Ding --- src/runtime/virtcontainers/physical_endpoint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/virtcontainers/physical_endpoint.go b/src/runtime/virtcontainers/physical_endpoint.go index b71e512d7b..615e256be5 100644 --- a/src/runtime/virtcontainers/physical_endpoint.go +++ b/src/runtime/virtcontainers/physical_endpoint.go @@ -100,6 +100,7 @@ func (endpoint *PhysicalEndpoint) Attach(ctx context.Context, s *Sandbox) error Major: c.Major, Minor: c.Minor, ColdPlug: true, + Port: s.config.HypervisorConfig.ColdPlugVFIO, } _, err = s.AddDevice(ctx, d)