]> git.proxmox.com Git - qemu.git/commit
scsi-disk: parse MODE SELECT commands and parameters
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jul 2012 13:02:55 +0000 (15:02 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:10 +0000 (17:44 +0200)
commit380feaffb0fcc8e5f615ed8e86d2e93717a6f2c6
tree7bafb79756a33ea78c6dff98de22f7d3faaf728d
parent4f588b151127a2556ad0c52158f98cfe1a9c0cfa
scsi-disk: parse MODE SELECT commands and parameters

This adds the bulk of the parsing code for MODE SELECT, including
breaking out changes to different mode pages, and checking that only
changeable values are modified.

In order to report errors correctly two passes are made through the
parameters; the first only looks for errors, the second actually
applies the changes to the mode page.

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