]> git.proxmox.com Git - mirror_qemu.git/commit
scsi-disk: add dpofua property
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 May 2012 08:25:16 +0000 (10:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 May 2012 06:44:19 +0000 (08:44 +0200)
commitda8365dbab51c445832137aa637bb5b990174b24
tree78b11e4ace390d58585fb0561a5c2ec3536bee0f
parentbfe3d7ac6d838b1931678d96d01c45d84c7e3de8
scsi-disk: add dpofua property

Linux expects REQ_FUA to be advertised only if WRITE+FUA is faster than
WRITE+SYNCHRONIZE CACHE, so we should not set the DPOFUA bit.  However,
it is useful to have it for testing purposes, so add a qdev property to
set it.

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