commit | 7285477ab11831b1cf56e45878a89170dd06d9b9 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Sep 16 16:40:04 2011 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Sep 20 12:27:43 2011 +0200 |
tree | df170949e1a3e643970ef085578943fc5a8205e8 | |
parent | 103b40f51e4012b3b0ad20f615562a1806d7f49a [diff] |
scsi-disk: lazily allocate bounce buffer It will not be needed for reads and writes if the HBA provides a sglist. In addition, this lets scsi-disk refuse commands with an excessive allocation length, as well as limit memory on usual well-behaved guests. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>