ppc/pnv: Add a HIOMAP erase command
[qemu.git] / include / hw / virtio / vhost-vsock.h
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
19 #define TYPE_VHOST_VSOCK "vhost-vsock-device"
20 #define VHOST_VSOCK(obj) \
21 OBJECT_CHECK(VHostVSock, (obj), TYPE_VHOST_VSOCK)
22
23 typedef struct {
24 uint64_t guest_cid;
25 char *vhostfd;
26 } VHostVSockConf;
27
28 typedef struct {
29 /*< private >*/
30 VHostVSockCommon parent;
31 VHostVSockConf conf;
32
33 /*< public >*/
34 } VHostVSock;
35
36 #endif /* QEMU_VHOST_VSOCK_H */