1*5fe97d88SStefano Garzarella /* 2*5fe97d88SStefano Garzarella * Vhost-user vsock virtio device 3*5fe97d88SStefano Garzarella * 4*5fe97d88SStefano Garzarella * Copyright 2020 Red Hat, Inc. 5*5fe97d88SStefano Garzarella * 6*5fe97d88SStefano Garzarella * This work is licensed under the terms of the GNU GPL, version 2 or 7*5fe97d88SStefano Garzarella * (at your option) any later version. See the COPYING file in the 8*5fe97d88SStefano Garzarella * top-level directory. 9*5fe97d88SStefano Garzarella */ 10*5fe97d88SStefano Garzarella 11*5fe97d88SStefano Garzarella #ifndef _QEMU_VHOST_USER_VSOCK_H 12*5fe97d88SStefano Garzarella #define _QEMU_VHOST_USER_VSOCK_H 13*5fe97d88SStefano Garzarella 14*5fe97d88SStefano Garzarella #include "hw/virtio/vhost-vsock-common.h" 15*5fe97d88SStefano Garzarella #include "hw/virtio/vhost-user.h" 16*5fe97d88SStefano Garzarella #include "standard-headers/linux/virtio_vsock.h" 17*5fe97d88SStefano Garzarella 18*5fe97d88SStefano Garzarella #define TYPE_VHOST_USER_VSOCK "vhost-user-vsock-device" 19*5fe97d88SStefano Garzarella #define VHOST_USER_VSOCK(obj) \ 20*5fe97d88SStefano Garzarella OBJECT_CHECK(VHostUserVSock, (obj), TYPE_VHOST_USER_VSOCK) 21*5fe97d88SStefano Garzarella 22*5fe97d88SStefano Garzarella typedef struct { 23*5fe97d88SStefano Garzarella CharBackend chardev; 24*5fe97d88SStefano Garzarella } VHostUserVSockConf; 25*5fe97d88SStefano Garzarella 26*5fe97d88SStefano Garzarella typedef struct { 27*5fe97d88SStefano Garzarella /*< private >*/ 28*5fe97d88SStefano Garzarella VHostVSockCommon parent; 29*5fe97d88SStefano Garzarella VhostUserState vhost_user; 30*5fe97d88SStefano Garzarella VHostUserVSockConf conf; 31*5fe97d88SStefano Garzarella struct virtio_vsock_config vsockcfg; 32*5fe97d88SStefano Garzarella 33*5fe97d88SStefano Garzarella /*< public >*/ 34*5fe97d88SStefano Garzarella } VHostUserVSock; 35*5fe97d88SStefano Garzarella 36*5fe97d88SStefano Garzarella #endif /* _QEMU_VHOST_USER_VSOCK_H */ 37