vhost-scsi.c (a3206972a9eab65ec8e8f9ae320ad628ba4b58f1) vhost-scsi.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02)
1/*
2 * vhost_scsi host device
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 *

--- 139 unchanged lines hidden (view full) ---

148 assert(ret >= 0);
149
150 vhost_scsi_clear_endpoint(s);
151 vhost_dev_stop(&s->dev, vdev);
152 vhost_dev_disable_notifiers(&s->dev, vdev);
153}
154
155static uint64_t vhost_scsi_get_features(VirtIODevice *vdev,
1/*
2 * vhost_scsi host device
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 *

--- 139 unchanged lines hidden (view full) ---

148 assert(ret >= 0);
149
150 vhost_scsi_clear_endpoint(s);
151 vhost_dev_stop(&s->dev, vdev);
152 vhost_dev_disable_notifiers(&s->dev, vdev);
153}
154
155static uint64_t vhost_scsi_get_features(VirtIODevice *vdev,
156 uint64_t features)
156 uint64_t features,
157 Error **errp)
157{
158 VHostSCSI *s = VHOST_SCSI(vdev);
159
160 return vhost_get_features(&s->dev, kernel_feature_bits, features);
161}
162
163static void vhost_scsi_set_config(VirtIODevice *vdev,
164 const uint8_t *config)

--- 186 unchanged lines hidden ---
158{
159 VHostSCSI *s = VHOST_SCSI(vdev);
160
161 return vhost_get_features(&s->dev, kernel_feature_bits, features);
162}
163
164static void vhost_scsi_set_config(VirtIODevice *vdev,
165 const uint8_t *config)

--- 186 unchanged lines hidden ---