runtime: failed to run in the case of ColdPlugVFIO

Add the missing port type in the DeviceInfo.

Fixes: #9014
Signed-off-by: Guoqiang Ding <dgq8211@gmail.com>
This commit is contained in:
Guoqiang Ding 2023-12-04 11:40:51 +08:00
parent 65013205ed
commit 6068faf40b

View File

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