]> git.proxmox.com Git - qemu.git/commit - hw/ide/core.c
ide: device version property
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Jan 2010 13:44:12 +0000 (14:44 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:31:04 +0000 (16:31 -0600)
commit47c063403065793ad6e1d2fdde27d69a00880752
tree1126fed51a7c0d0a382bae6aa3f32e31b4b401b2
parentf039a563f200beee80cc10fd70b21ea396979dab
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>
hw/ide/core.c
hw/ide/internal.h
hw/ide/qdev.c