diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2016-02-01 11:17:57 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-02-08 16:40:38 +1100 |
commit | b5a692d3f7c2cf3ca2eea5e9f8f99f0972cf56d1 (patch) | |
tree | 7e1d242c6884dbfc4958354ded8ae5620a9679b4 /lib/libvirtio/virtio-blk.c | |
parent | bcdf942b91c3630764e2b8935ffb4c18484053cb (diff) | |
download | SLOF-b5a692d3f7c2cf3ca2eea5e9f8f99f0972cf56d1.zip SLOF-b5a692d3f7c2cf3ca2eea5e9f8f99f0972cf56d1.tar.gz SLOF-b5a692d3f7c2cf3ca2eea5e9f8f99f0972cf56d1.tar.bz2 |
virtio-{blk,9p}: enable resetting the device
With the lack of the virtio_queue_init_vq routine, driver like
virtio-blk and virtio-9p had disabled device reset in the
initialization code. This helper will fix that problem, as the
initialization can be done after the device reset.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libvirtio/virtio-blk.c')
-rw-r--r-- | lib/libvirtio/virtio-blk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libvirtio/virtio-blk.c b/lib/libvirtio/virtio-blk.c index b78ada5..1a8ee1b 100644 --- a/lib/libvirtio/virtio-blk.c +++ b/lib/libvirtio/virtio-blk.c @@ -32,10 +32,7 @@ virtioblk_init(struct virtio_device *dev) int features; /* Reset device */ - // XXX That will clear the virtq base. We need to move - // initializing it to here anyway - // - // virtio_reset_device(dev); + virtio_reset_device(dev); /* Acknowledge device. */ virtio_set_status(dev, VIRTIO_STAT_ACKNOWLEDGE); |