These patches are preparatory work for supporting scatter/gather in the SCSI subsystem. Since there would be no HBA actually using it, I am just posting the cleanups, and the fix for CVE-2011-3346 (buffer overflow in the handling of READ CAPACITY 16) that comes for free with the last patch.
v1->v2: made to_dev a bool; fixes in patch 3 Paolo Bonzini (5): dma-helpers: rename is_write to to_dev dma-helpers: allow including from target-independent code dma-helpers: rewrite completion/cancellation scsi-disk: commonize iovec creation between reads and writes scsi-disk: lazily allocate bounce buffer dma-helpers.c | 58 +++++++++++++++++++++++++------------- dma.h | 10 ++++-- hw/ide/core.c | 2 +- hw/ide/macio.c | 2 +- hw/scsi-disk.c | 84 +++++++++++++++++++++++++++++++++---------------------- qemu-common.h | 1 + 6 files changed, 98 insertions(+), 59 deletions(-) -- 1.7.6