scsi-disk: support toggling the write cache
commit96c91bbf6090b3098db22ed19ab5ae2f9c6e4f16
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jul 2012 13:03:17 +0000 (10 15:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:10 +0000 (26 17:44 +0200)
tree21c7de4c1c20ffc0a0d5fef6b385f80008fabdb1
parent380feaffb0fcc8e5f615ed8e86d2e93717a6f2c6
scsi-disk: support toggling the write cache

Finally, this uses the "plumbing" in the previous patch to
add support for toggling the WCE bit of the caching mode page.

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