[bio] Add a flag that allows devices to declare that they only deal with cache aligned blocks of memory

This commit is contained in:
Gurjant Kalsi
2015-11-02 16:09:12 -08:00
parent a79328fe97
commit 7e0a4d3f90
10 changed files with 23 additions and 10 deletions

View File

@@ -154,7 +154,7 @@ status_t virtio_block_init(struct virtio_device *dev, uint32_t host_features)
snprintf(buf, sizeof(buf), "virtio%u", found_index++);
bio_initialize_bdev(&bdev->bdev, buf,
config->blk_size, config->capacity,
0, NULL);
0, NULL, BIO_FLAGS_NONE);
/* override our block device hooks */
bdev->bdev.read_block = &virtio_bdev_read_block;