aboutsummaryrefslogtreecommitdiff
path: root/lib/libvirtio/virtio-blk.h
AgeCommit message (Collapse)AuthorFilesLines
2016-11-24virtio: Implement block write supportThomas Huth1-1/+2
Refactor the virtio-block code a little bit to provide block write access, too. Write access to the first 34 sectors is not allowed, though, to avoid that the user / client program accidentially destroys the partition table. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2016-02-08virtio-blk: fix gcc warnings (-Wextra)Nikunj A Dadhania1-1/+1
Change the prototype of virtioblk_read as blocknum wont be negative 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>
2014-04-25virtio-blk: support variable block sizeNikunj A Dadhania1-5/+5
Current code only works with 512 bytes read. Moreover, Qemu ignores the guest set features request. In the set features request SLOF indicates to qemu that it is not support VIRTIO_BLK_F_BLK_SIZE feature. Code in qemu suggests that virtio-blk is not implementing set_guest_feature. Tested-by: Bharata B Rao <bharata@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2012-01-19Move virtio to a separate libraryBenjamin Herrenschmidt1-0/+60
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>