scsi-disk: add scsi-block for device passthrough
commit336a6915bc7089fb20fea4ba99972ad9a97c5f52
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Oct 2011 10:53:37 +0000 (25 12:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:52 +0000 (28 19:25 +0200)
tree66ab2d943da8057f0b6829021ab8cff69c19fc31
parent71544d30a6f8b91574552a61cd5bd122a77e82d1
scsi-disk: add scsi-block for device passthrough

scsi-block is a new device that supports device passthrough of Linux
block devices (i.e. /dev/sda, not /dev/sg0).  It uses SG_IO for commands
other than I/O commands, and regular AIO read/writes for I/O commands.
Besides being simpler to configure (no mapping required to scsi-generic
device names), this removes the need for a large bounce buffer and,
in the future, will get scatter/gather support for free from scsi-disk.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c