mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-16 08:26:16 +00:00
Merge pull request #2087 from jschintag/fix_s390x_vsock
s390x: Fix runtime build for s390x
This commit is contained in:
commit
36626c13c8
@ -246,9 +246,9 @@ func (q *qemuS390x) appendSCSIController(devices []govmmQemu.Device, enableIOThr
|
||||
return devices, t, nil
|
||||
}
|
||||
|
||||
func (q *qemuS390x) appendVSock(devices []govmmQemu.Device, vsock kataVSOCK) ([]govmmQemu.Device, error) {
|
||||
func (q *qemuS390x) appendVSock(devices []govmmQemu.Device, vsock types.VSock) ([]govmmQemu.Device, error) {
|
||||
var devno string
|
||||
id := fmt.Sprintf("vsock-%d", vsock.contextID)
|
||||
id := fmt.Sprintf("vsock-%d", vsock.ContextID)
|
||||
addr, b, err := q.addDeviceToBridge(id, types.CCW)
|
||||
if err != nil {
|
||||
return devices, fmt.Errorf("Failed to append VSock: %v", err)
|
||||
@ -260,8 +260,8 @@ func (q *qemuS390x) appendVSock(devices []govmmQemu.Device, vsock kataVSOCK) ([]
|
||||
devices = append(devices,
|
||||
govmmQemu.VSOCKDevice{
|
||||
ID: id,
|
||||
ContextID: vsock.contextID,
|
||||
VHostFD: vsock.vhostFd,
|
||||
ContextID: vsock.ContextID,
|
||||
VHostFD: vsock.VhostFd,
|
||||
DisableModern: false,
|
||||
DevNo: devno,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user