]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
pc: add driver version compat properties
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Jan 2010 13:44:14 +0000 (14:44 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:42:45 +0000 (16:42 -0600)
This patch adds compat property entries for ide-disk.ver and
scsi-disk.ver to pc-0.10 and pc-0.11.  With this patch applied
the scsi and ide disks report "0.10" and "0.11" as version when
you start qemu with "-M pc-0.10" or "-M pc-0.11".

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 374ef70452452fb729c45dcf1a73a1bd1396cfda)

hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 86c2ba01e051d96c114304ce28dd4b12adda441c..04ff78d974bc23011ebd598c55da33d642420835 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1306,6 +1306,14 @@ static QEMUMachine pc_machine_v0_11 = {
             .driver   = "virtio-blk-pci",
             .property = "vectors",
             .value    = stringify(0),
+        },{
+            .driver   = "ide-drive",
+            .property = "ver",
+            .value    = "0.11",
+        },{
+            .driver   = "scsi-disk",
+            .property = "ver",
+            .value    = "0.11",
         },{
             .driver   = "PCI",
             .property = "rombar",
@@ -1337,6 +1345,14 @@ static QEMUMachine pc_machine_v0_10 = {
             .driver   = "virtio-blk-pci",
             .property = "vectors",
             .value    = stringify(0),
+        },{
+            .driver   = "ide-drive",
+            .property = "ver",
+            .value    = "0.10",
+        },{
+            .driver   = "scsi-disk",
+            .property = "ver",
+            .value    = "0.10",
         },{
             .driver   = "PCI",
             .property = "rombar",