summary refs log tree commit diff stats
path: root/hw/ide/qdev.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2019-10-09 18:43:03 -0400
committerJohn Snow <jsnow@redhat.com>2019-10-31 05:28:11 -0400
commit7d60133fcae81b1c829d30ceca4f16eaa26c4d36 (patch)
tree7f2802c9fa248d16d1886ea8b035e765941a87f0 /hw/ide/qdev.c
parent68d8ef4ec540682c3538d4963e836e43a211dd17 (diff)
downloadfocaccia-qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.tar.gz
focaccia-qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.zip
IDE: deprecate ide-drive
It's an old compatibility shim that just delegates to ide-cd or ide-hd.
I'd like to refactor these some day, and getting rid of the super-object
will make that easier.

Either way, we don't need this.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
Message-id: 20191009224303.10232-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw/ide/qdev.c')
-rw-r--r--hw/ide/qdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
index 6fba6b62b8..3666e59721 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -279,6 +279,9 @@ static void ide_drive_realize(IDEDevice *dev, Error **errp)
 {
     DriveInfo *dinfo = NULL;
 
+    warn_report("'ide-drive' is deprecated, "
+                "please use 'ide-hd' or 'ide-cd' instead");
+
     if (dev->conf.blk) {
         dinfo = blk_legacy_dinfo(dev->conf.blk);
     }