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