mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-18 01:13:56 +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
|
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
|
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)
|
addr, b, err := q.addDeviceToBridge(id, types.CCW)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return devices, fmt.Errorf("Failed to append VSock: %v", err)
|
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,
|
devices = append(devices,
|
||||||
govmmQemu.VSOCKDevice{
|
govmmQemu.VSOCKDevice{
|
||||||
ID: id,
|
ID: id,
|
||||||
ContextID: vsock.contextID,
|
ContextID: vsock.ContextID,
|
||||||
VHostFD: vsock.vhostFd,
|
VHostFD: vsock.VhostFd,
|
||||||
DisableModern: false,
|
DisableModern: false,
|
||||||
DevNo: devno,
|
DevNo: devno,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user