scsi: move max_lba to SCSIDevice
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Oct 2011 08:39:50 +0000 (10:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:52 +0000 (19:25 +0200)
commit187752af04b7b2e935987c0d5d4d010416436b15
tree174952301a7a18059bb93ea32d7a93e4d6765beb
parent392edc074e024bc205932d3d81974ca20ab5074e
scsi: move max_lba to SCSIDevice

The field is only in scsi-disk for now.  Moving it up to SCSIDevice makes
it easier to reuse the scsi-generic reqops elsewhere.

At the same time, make scsi-generic get max_lba from snooped READ CAPACITY
commands as well.

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