scsi: device version property
commit383b4d9b79e3a71b1d5cadd34989b1c0e2a05832
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Jan 2010 13:44:13 +0000 (14 14:44 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:31:04 +0000 (19 16:31 -0600)
tree8f122c76426835b6b38d17dabe639e1c0c5d2cf0
parent47c063403065793ad6e1d2fdde27d69a00880752
scsi: device version property

This patch adds a new property named 'ver' to scsi-disk which allows to
specify the version which the virtual disk/cdrom should report to the
guest.  By default this is the qemu version (i.e. 0.12).  usage:

  -drive if=none,id=disk,file=...
  -device lsi
  -device scsi-disk,drive=disk,bus=scsi.0,unit=0,ver=42

You can also switch the version for all scsi drives using:

  -global scsi-disk.ver=42

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-disk.c