1 /* 2 * Vhost vsock virtio device 3 * 4 * Copyright 2015 Red Hat, Inc. 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@redhat.com> 8 * 9 * This work is licensed under the terms of the GNU GPL, version 2 or 10 * (at your option) any later version. See the COPYING file in the 11 * top-level directory. 12 */ 13 14 #ifndef QEMU_VHOST_VSOCK_H 15 #define QEMU_VHOST_VSOCK_H 16 17 #include "hw/virtio/vhost-vsock-common.h" 18 #include "qom/object.h" 19 20 #define TYPE_VHOST_VSOCK "vhost-vsock-device" 21 typedef struct VHostVSock VHostVSock; 22 DECLARE_INSTANCE_CHECKER(VHostVSock, VHOST_VSOCK, 23 TYPE_VHOST_VSOCK) 24 25 typedef struct { 26 uint64_t guest_cid; 27 char *vhostfd; 28 } VHostVSockConf; 29 30 struct VHostVSock { 31 /*< private >*/ 32 VHostVSockCommon parent; 33 VHostVSockConf conf; 34 35 /*< public >*/ 36 }; 37 38 #endif /* QEMU_VHOST_VSOCK_H */ 39