scsi: add support for FUA on writes
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Apr 2012 08:10:54 +0000 (10:10 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Apr 2012 13:27:20 +0000 (15:27 +0200)
commit7e8c49c56154ab5c45d4f07edf0c22728735da35
treed68f6af33397a9b7c1a0ae4d5590a50d3df10d2b
parentb77912a77a613451e9aac9a12f721eb5e9f09185
scsi: add support for FUA on writes

To force unit access, add a flush operation after the actual write.
WRITE AND VERIFY commands always flush according to SBC, so do it
even though we do not perform the reread.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c