diff options
author | John Snow | 2019-10-10 00:43:03 +0200 |
---|---|---|
committer | John Snow | 2019-10-31 10:28:11 +0100 |
commit | 7d60133fcae81b1c829d30ceca4f16eaa26c4d36 (patch) | |
tree | 7f2802c9fa248d16d1886ea8b035e765941a87f0 /hw/ide/qdev.c | |
parent | Merge remote-tracking branch 'remotes/stsquad/tags/pull-tcg-plugins-281019-4'... (diff) | |
download | qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.tar.gz qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.tar.xz 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.c | 3 |
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); } |