mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 07:19:06 +00:00
clh: Do not find vsock context ID
cloud-hypervisor uses `hybrid vsocks`, it is not needed to find a context ID. Fixes: #2481 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
9f240b241a
commit
32196ff750
@ -592,14 +592,10 @@ func (clh *cloudHypervisor) generateSocket(id string, useVsock bool) (interface{
|
||||
clh.Logger().Info("Can't generate socket path for cloud-hypervisor")
|
||||
return types.HybridVSock{}, err
|
||||
}
|
||||
_, cid, err := utils.FindContextID()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return types.HybridVSock{
|
||||
UdsPath: udsPath,
|
||||
ContextID: cid,
|
||||
Port: uint32(vSockPort),
|
||||
UdsPath: udsPath,
|
||||
Port: uint32(vSockPort),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user