scsi: move non-emulation specific code to scsi/
commite5b5728cd330f533e02e483af8973ad7ffccce8b
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Aug 2017 05:08:27 +0000 (22 07:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Sep 2017 12:09:11 +0000 (19 14:09 +0200)
treef47dcecd074391ef42adfeae7d8d4fda94c69bcf
parent37b6045c455275af37f0433b05b0dad123e14daf
scsi: move non-emulation specific code to scsi/

util/scsi.c includes some SCSI code that is shared by block/iscsi.c and
hw/scsi, but the introduction of the persistent reservation helper
will add many more instances of this.  There is also include/block/scsi.h,
which actually is not part of the core block layer.

The persistent reservation manager will also need a home.  A scsi/
directory provides one for both the aforementioned shared code and
the PR manager code.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
14 files changed:
MAINTAINERS
Makefile.objs
block/iscsi.c
hw/scsi/scsi-bus.c
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
include/block/scsi.h
include/hw/scsi/scsi.h
include/scsi/scsi.h [deleted file]
include/scsi/utils.h [new file with mode: 0644]
scsi/Makefile.objs [new file with mode: 0644]
scsi/utils.c [new file with mode: 0644]
util/Makefile.objs
util/scsi.c [deleted file]