Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / virtio / vhost-vsock.h
blob84f4e727c70fa7a00b68487e22f2b0201d94b021
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"
18 #include "qom/object.h"
20 #define TYPE_VHOST_VSOCK "vhost-vsock-device"
21 OBJECT_DECLARE_SIMPLE_TYPE(VHostVSock, VHOST_VSOCK)
23 typedef struct {
24 uint64_t guest_cid;
25 char *vhostfd;
26 } VHostVSockConf;
28 struct VHostVSock {
29 /*< private >*/
30 VHostVSockCommon parent;
31 VHostVSockConf conf;
33 /*< public >*/
36 #endif /* QEMU_VHOST_VSOCK_H */