scsi-disk: add need_fua_emulation to SCSIDiskClass
commit94f8ba1125ee7dfc7aa46166c8e3312e5ad949df
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 May 2016 11:14:52 +0000 (13 13:14 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 29 May 2016 07:11:11 +0000 (29 09:11 +0200)
tree3cb4151f09b3369a275b220908365f7ccf5b7faf
parentfcaafb1001b9c42817714dd3b2aadcfdb997b53d
scsi-disk: add need_fua_emulation to SCSIDiskClass

scsi-block will be able to do FUA just by passing the request through
to the LUN (which is also more efficient); there is no need to emulate
it like we do for scsi-disk.

Add a new method to distinguish this.

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