]> git.ipfire.org Git - thirdparty/qemu.git/commit
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:42:37 +0000 (16:42 -0600)
commit9525204c5d250f7f4157ae1f6819cd14116e99b0
tree84f5ba94a376f35d355c62900ff29ddcf69ebf47
parentf79d556b4faac511a20f1705540d76d195905481
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>
(cherry picked from commit 383b4d9b79e3a71b1d5cadd34989b1c0e2a05832)
hw/scsi-disk.c