Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / virtio / vhost-user-scsi.h
blob78fe616ccbd491808de85fb5bbed704567e30168
1 /*
2 * vhost-user-scsi host device
4 * Copyright (c) 2016 Nutanix Inc. All rights reserved.
6 * Author:
7 * Felipe Franciosi <felipe@nutanix.com>
9 * This file is largely based on "vhost-scsi.h" by:
10 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
12 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
13 * See the COPYING.LIB file in the top-level directory.
17 #ifndef VHOST_USER_SCSI_H
18 #define VHOST_USER_SCSI_H
20 #include "hw/virtio/virtio-scsi.h"
21 #include "hw/virtio/vhost.h"
22 #include "hw/virtio/vhost-user.h"
23 #include "hw/virtio/vhost-scsi-common.h"
24 #include "qom/object.h"
26 #define TYPE_VHOST_USER_SCSI "vhost-user-scsi"
27 OBJECT_DECLARE_SIMPLE_TYPE(VHostUserSCSI, VHOST_USER_SCSI)
29 struct VHostUserSCSI {
30 VHostSCSICommon parent_obj;
32 /* Properties */
33 bool connected;
34 bool started_vu;
36 VhostUserState vhost_user;
37 struct vhost_virtqueue *vhost_vqs;
40 #endif /* VHOST_USER_SCSI_H */