Patchwork [3/3] pc: add driver version compat properties

login
register
mail settings
Submitter Gerd Hoffmann
Date Jan. 14, 2010, 1:44 p.m.
Message ID <1263476654-7222-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/42896/
State New
Headers show

Comments

Gerd Hoffmann - Jan. 14, 2010, 1:44 p.m.
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>
---
 hw/pc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/pc.c b/hw/pc.c
index a93c5f2..2548c14 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1083,6 +1083,14 @@  static QEMUMachine pc_machine_v0_11 = {
             .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",
             .value    = stringify(0),
@@ -1114,6 +1122,14 @@  static QEMUMachine pc_machine_v0_10 = {
             .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",
             .value    = stringify(0),