diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-01-13 17:25:00 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-01-19 17:17:50 +1100 |
commit | 44e8d9a57d2e67e5e05d6ae1902eec90db77f752 (patch) | |
tree | fe7c574147648842e89e60cf2cc0e9f61d350a41 /lib/libvirtio/virtio-blk.c | |
parent | ca610c931e2b0004c44f748cb813580b09c60489 (diff) | |
download | SLOF-44e8d9a57d2e67e5e05d6ae1902eec90db77f752.zip SLOF-44e8d9a57d2e67e5e05d6ae1902eec90db77f752.tar.gz SLOF-44e8d9a57d2e67e5e05d6ae1902eec90db77f752.tar.bz2 |
Add virtfs support
Code originally written by Timothy Rule and reworked &
bug fixed by myself
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'lib/libvirtio/virtio-blk.c')
-rw-r--r-- | lib/libvirtio/virtio-blk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libvirtio/virtio-blk.c b/lib/libvirtio/virtio-blk.c index 7b1e795..e470968 100644 --- a/lib/libvirtio/virtio-blk.c +++ b/lib/libvirtio/virtio-blk.c @@ -27,7 +27,10 @@ virtioblk_init(struct virtio_device *dev) struct vring_avail *vq_avail; /* Reset device */ - // virtio_reset_device(dev); + // XXX That will clear the virtq base. We need to move + // initializing it to here anyway + // + // virtio_reset_device(dev); /* Acknowledge device. */ virtio_set_status(dev, VIRTIO_STAT_ACKNOWLEDGE); @@ -146,6 +149,7 @@ virtioblk_read(struct virtio_device *dev, char *buf, long blocknum, long cnt) /* Wait for host to consume the descriptor */ i = 10000000; while (*current_used_idx == last_used_idx && i-- > 0) { + // do something better sync(); } |