]> Git Repo - qemu.git/commit - hw/scsi-disk.c
scsi-disk: add scsi-block for device passthrough
authorPaolo Bonzini <[email protected]>
Tue, 25 Oct 2011 10:53:37 +0000 (12:53 +0200)
committerKevin Wolf <[email protected]>
Fri, 28 Oct 2011 17:25:52 +0000 (19:25 +0200)
commit336a6915bc7089fb20fea4ba99972ad9a97c5f52
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 <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/scsi-disk.c
This page took 0.026519 seconds and 4 git commands to generate.