diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-28 09:32:53 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-31 18:53:10 +0100 |
commit | 97b50a654d5de505ccf972c6b7ea7bfda1c0c475 (patch) | |
tree | 95ea8c487520cca26e825c5e7272714086034d54 /drivers/block/Kconfig | |
parent | virtio_blk: remove struct request backpointer from virtblk_req (diff) | |
download | linux-97b50a654d5de505ccf972c6b7ea7bfda1c0c475.tar.xz linux-97b50a654d5de505ccf972c6b7ea7bfda1c0c475.zip |
virtio_blk: make SCSI passthrough support configurable
The SCSI passthrough idea was a a bad idea to start with (guess who came
up with it?), and has been removed from the virtio 1.O spec, and is not
enabled by defauly by any host I know of. Add a separate config option
for it so that we don't need to enable it for most setups. That way
any bugs related to it (like the one recently fixed for vmapped stacks)
do not affect other users, and the size of the virtblk_req structure
also shrinks significantly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/Kconfig')
-rw-r--r-- | drivers/block/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 7a4c787a5edf..f744de7a0f9b 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -500,11 +500,20 @@ config XEN_BLKDEV_BACKEND config VIRTIO_BLK tristate "Virtio block driver" depends on VIRTIO - select BLK_SCSI_REQUEST ---help--- This is the virtual block driver for virtio. It can be used with lguest or QEMU based VMMs (like KVM or Xen). Say Y or M. +config VIRTIO_BLK_SCSI + bool "SCSI passthrough request for the Virtio block driver" + depends on VIRTIO_BLK + select BLK_SCSI_REQUEST + ---help--- + Enable support for SCSI passthrough (e.g. the SG_IO ioctl) on + virtio-blk devices. This is only supported for the legacy + virtio protocol and not enabled by default by any hypervisor. + Your probably want to virtio-scsi instead. + config BLK_DEV_HD bool "Very old hard disk (MFM/RLL/IDE) driver" depends on HAVE_IDE |