ide: device version property
commitf79d556b4faac511a20f1705540d76d195905481
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Jan 2010 13:44:12 +0000 (14 14:44 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:42:25 +0000 (19 16:42 -0600)
treed421cf25891f221e43fc8ea9cfa65e1c70b0bf42
parent41ae9ece21eccad7b1a6262d0a473572f0a4b75f
ide: device version property

This patch adds a new property named 'ver' to ide-drive 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 ide-drive,bus=ide.0,unit=0,drive=disk,ver=42

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

  -global ide-drive.ver=42

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 47c063403065793ad6e1d2fdde27d69a00880752)
hw/ide/core.c
hw/ide/internal.h
hw/ide/qdev.c