MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / virtio / vhost-user-vsock.h
blob4e128a4b9f1bab896b5718ebcca23e3547f11233
1 /*
2 * Vhost-user vsock virtio device
4 * Copyright 2020 Red Hat, Inc.
6 * This work is licensed under the terms of the GNU GPL, version 2 or
7 * (at your option) any later version. See the COPYING file in the
8 * top-level directory.
9 */
11 #ifndef _QEMU_VHOST_USER_VSOCK_H
12 #define _QEMU_VHOST_USER_VSOCK_H
14 #include "hw/virtio/vhost-vsock-common.h"
15 #include "hw/virtio/vhost-user.h"
16 #include "standard-headers/linux/virtio_vsock.h"
18 #define TYPE_VHOST_USER_VSOCK "vhost-user-vsock-device"
19 #define VHOST_USER_VSOCK(obj) \
20 OBJECT_CHECK(VHostUserVSock, (obj), TYPE_VHOST_USER_VSOCK)
22 typedef struct {
23 CharBackend chardev;
24 } VHostUserVSockConf;
26 typedef struct {
27 /*< private >*/
28 VHostVSockCommon parent;
29 VhostUserState vhost_user;
30 VHostUserVSockConf conf;
31 struct virtio_vsock_config vsockcfg;
33 /*< public >*/
34 } VHostUserVSock;
36 #endif /* _QEMU_VHOST_USER_VSOCK_H */