github.com/kata-containers/runtime@v0.0.0-20210505125100-04f29832a923/virtcontainers/utils/utils_linux_ppc64le.go (about)

     1  // Copyright (c) 2019 IBM
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  
     6  package utils
     7  
     8  // from <linux/vhost.h>
     9  // VHOST_VSOCK_SET_GUEST_CID = _IOW(VHOST_VIRTIO, 0x60, __u64)
    10  
    11  // _IOC_WRITE is 1 for arch generic and 4 for powerpc
    12  // Code reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/uapi/asm/ioctl.h
    13  // Explanation: https://github.com/kata-containers/runtime/pull/1989#issuecomment-525993135
    14  const ioctlVhostVsockSetGuestCid = 0x8008AF60
    15  
    16  func getIoctlVhostVsockGuestCid() uintptr {
    17  	return ioctlVhostVsockSetGuestCid
    18  }