xref: /openbmc/qemu/include/hw/virtio/vhost-vsock.h (revision f101c9fe)
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 OBJECT_DECLARE_SIMPLE_TYPE(VHostVSock, VHOST_VSOCK)
22 
23 typedef struct {
24     uint64_t guest_cid;
25     char *vhostfd;
26 } VHostVSockConf;
27 
28 struct VHostVSock {
29     /*< private >*/
30     VHostVSockCommon parent;
31     VHostVSockConf conf;
32 
33     /*< public >*/
34 };
35 
36 #endif /* QEMU_VHOST_VSOCK_H */
37