MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / virtio / vhost-vsock.h
blob8cbb7b90f9c6549142ba5a20517803e9184abe77
1 /*
2 * Vhost vsock virtio device
4 * Copyright 2015 Red Hat, Inc.
6 * Authors:
7 * Stefan Hajnoczi <stefanha@redhat.com>
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.
14 #ifndef QEMU_VHOST_VSOCK_H
15 #define QEMU_VHOST_VSOCK_H
17 #include "hw/virtio/vhost-vsock-common.h"
19 #define TYPE_VHOST_VSOCK "vhost-vsock-device"
20 #define VHOST_VSOCK(obj) \
21 OBJECT_CHECK(VHostVSock, (obj), TYPE_VHOST_VSOCK)
23 typedef struct {
24 uint64_t guest_cid;
25 char *vhostfd;
26 } VHostVSockConf;
28 typedef struct {
29 /*< private >*/
30 VHostVSockCommon parent;
31 VHostVSockConf conf;
33 /*< public >*/
34 } VHostVSock;
36 #endif /* QEMU_VHOST_VSOCK_H */