aliguori 7d78066926 Add specialized block driver scsi generic API (Avi Kivity)
When a scsi device is backed by a scsi generic device instead of an
ordinary host block device, the block API is abused in a couple of annoying
ways:

 - nb_sectors is negative, and specifies a byte count instead of a sector count
 - offset is ignored, since scsi-generic is essentially a packet protocol

This overloading makes hacking the block layer difficult.  Remove it by
introducing a new explicit API for scsi-generic devices.  The new API
is still backed by the old implementation, but at least the users are
insulated.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6822 c046a42c-6fe2-441c-8c8c-71466251a162
2009-03-12 19:57:08 +00:00
..
2008-12-30 19:01:19 +00:00
2009-03-05 23:01:23 +00:00
2009-03-07 21:48:00 +00:00
2009-03-05 23:01:23 +00:00
2008-12-13 09:32:43 +00:00
2008-06-13 10:48:22 +00:00
2009-02-06 00:49:42 +00:00
2008-04-08 06:01:02 +00:00
2009-03-10 21:43:35 +00:00
2008-12-13 09:32:43 +00:00
2009-01-18 12:16:26 +00:00
2008-04-11 04:55:07 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2009-01-14 14:47:56 +00:00
2009-03-05 23:01:23 +00:00
2008-03-21 18:05:23 +00:00
2009-02-06 00:15:19 +00:00
2004-11-07 18:04:02 +00:00
2009-01-16 21:38:58 +00:00
2009-01-16 21:38:58 +00:00
2009-03-05 23:01:23 +00:00
2009-03-07 15:46:23 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2009-03-04 07:20:40 +00:00
2009-02-07 10:48:26 +00:00
2008-12-13 09:32:43 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2009-01-16 21:13:58 +00:00
2009-01-20 04:15:47 +00:00
2009-03-07 21:48:00 +00:00
2009-01-08 18:52:52 +00:00
2009-03-05 23:01:23 +00:00
2009-03-05 23:01:23 +00:00
2009-03-05 23:01:23 +00:00
2008-12-10 15:02:07 +00:00
2009-03-05 23:01:23 +00:00
2008-12-03 22:48:44 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2009-02-11 18:04:12 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2009-03-03 06:23:17 +00:00
2008-04-14 21:05:22 +00:00
2009-02-07 15:18:47 +00:00
2009-03-05 23:01:23 +00:00
2008-12-13 09:32:43 +00:00
2007-11-17 17:14:51 +00:00
2008-12-13 09:32:43 +00:00
2009-03-05 23:01:23 +00:00
2009-02-07 15:19:40 +00:00
2009-03-07 20:53:18 +00:00
2009-03-05 23:01:23 +00:00
2009-01-16 19:07:10 +00:00
2009-03-07 15:46:23 +00:00
2008-12-04 20:33:06 +00:00