mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-10 09:39:24 +00:00
set VHOST_VSOCK_SET_GUEST_CID depending on the host architecture. Fixes: #1988 Signed-off-by: Nitesh Konkar <niteshkonkar@in.ibm.com>
17 lines
340 B
Go
17 lines
340 B
Go
// +build amd64 arm64 s390x !ppc64le
|
|
|
|
// Copyright (c) 2019 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package utils
|
|
|
|
// from <linux/vhost.h>
|
|
// VHOST_VSOCK_SET_GUEST_CID = _IOW(VHOST_VIRTIO, 0x60, __u64)
|
|
const ioctlVhostVsockSetGuestCid = 0x4008AF60
|
|
|
|
func getIoctlVhostVsockGuestCid() uintptr {
|
|
return ioctlVhostVsockSetGuestCid
|
|
}
|