hw/ufs: Modify lu.c to share codes with SCSI subsystem
This patch removes the code that ufs-lu was duplicating from
scsi-hd and allows them to share code.
It makes ufs-lu have a virtual scsi-bus and scsi-hd internally.
This allows scsi related commands to be passed thorugh to the scsi-hd.
The query request and nop command work the same as the existing logic.
Well-known lus do not have a virtual scsi-bus and scsi-hd, and
handle the necessary scsi commands by emulating them directly.
Signed-off-by:
Jeuk Kim <jeuk20.kim@samsung.com>
Showing
- hw/ufs/lu.c 238 additions, 1235 deletionshw/ufs/lu.c
- hw/ufs/trace-events 0 additions, 25 deletionshw/ufs/trace-events
- hw/ufs/ufs.c 27 additions, 175 deletionshw/ufs/ufs.c
- hw/ufs/ufs.h 21 additions, 15 deletionshw/ufs/ufs.h
- include/block/ufs.h 1 addition, 1 deletioninclude/block/ufs.h
- tests/qtest/ufs-test.c 28 additions, 9 deletionstests/qtest/ufs-test.c
Loading
Please register or sign in to comment