diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-24 10:21:20 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:20 -0500 |
commit | 181103cd52710b987799ae980bb92407994243bc (patch) | |
tree | 9442542631a8ef1920719cfaddebad25a7d17c0a /hw/scsi | |
parent | a2f1078b70b6cfc98ed795f17f9d975b1dec1f65 (diff) | |
download | qemu-181103cd52710b987799ae980bb92407994243bc.zip |
virtio: remove the function pointer.
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r-- | hw/scsi/vhost-scsi.c | 4 | ||||
-rw-r--r-- | hw/scsi/virtio-scsi.c | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 3dd1a0f2ed..3c93172e83 100644 --- a/hw/scsi/vhost-scsi.c +++ b/hw/scsi/vhost-scsi.c @@ -217,10 +217,6 @@ static int vhost_scsi_init(VirtIODevice *vdev) return ret; } - vdev->get_features = vhost_scsi_get_features; - vdev->set_config = vhost_scsi_set_config; - vdev->set_status = vhost_scsi_set_status; - s->dev.nvqs = VHOST_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; s->dev.vqs = g_new(struct vhost_virtqueue, s->dev.nvqs); s->dev.vq_index = 0; diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 051daeac55..630e459b02 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -599,8 +599,6 @@ int virtio_scsi_common_init(VirtIOSCSICommon *s) s->sense_size = VIRTIO_SCSI_SENSE_SIZE; s->cdb_size = VIRTIO_SCSI_CDB_SIZE; - vdev->get_config = virtio_scsi_get_config; - s->ctrl_vq = virtio_add_queue(vdev, VIRTIO_SCSI_VQ_SIZE, virtio_scsi_handle_ctrl); s->event_vq = virtio_add_queue(vdev, VIRTIO_SCSI_VQ_SIZE, @@ -626,10 +624,6 @@ static int virtio_scsi_device_init(VirtIODevice *vdev) return ret; } - vdev->get_features = virtio_scsi_get_features; - vdev->set_config = virtio_scsi_set_config; - vdev->reset = virtio_scsi_reset; - scsi_bus_new(&s->bus, qdev, &virtio_scsi_scsi_info); if (!qdev->hotplugged) { scsi_bus_legacy_handle_cmdline(&s->bus); |