virtio: inline virtio_queue_set_host_notifier_fd_handler
[qemu/ar7.git] / include / hw / virtio / vhost-scsi.h
blob9fd63df12eb7f96e9152771a397ead5c402f722f
1 /*
2 * vhost_scsi host device
4 * Copyright IBM, Corp. 2011
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
9 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
10 * See the COPYING.LIB file in the top-level directory.
14 #ifndef VHOST_SCSI_H
15 #define VHOST_SCSI_H
17 #include "qemu-common.h"
18 #include "hw/qdev.h"
19 #include "hw/virtio/virtio-scsi.h"
20 #include "hw/virtio/vhost.h"
22 enum vhost_scsi_vq_list {
23 VHOST_SCSI_VQ_CONTROL = 0,
24 VHOST_SCSI_VQ_EVENT = 1,
25 VHOST_SCSI_VQ_NUM_FIXED = 2,
28 #define TYPE_VHOST_SCSI "vhost-scsi"
29 #define VHOST_SCSI(obj) \
30 OBJECT_CHECK(VHostSCSI, (obj), TYPE_VHOST_SCSI)
32 typedef struct VHostSCSI {
33 VirtIOSCSICommon parent_obj;
35 Error *migration_blocker;
37 struct vhost_dev dev;
38 int32_t bootindex;
39 int channel;
40 int target;
41 int lun;
42 } VHostSCSI;
44 #endif