diff options
author | John Snow <jsnow@redhat.com> | 2019-10-09 18:43:03 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2019-10-31 05:28:11 -0400 |
commit | 7d60133fcae81b1c829d30ceca4f16eaa26c4d36 (patch) | |
tree | 7f2802c9fa248d16d1886ea8b035e765941a87f0 /hw | |
parent | 68d8ef4ec540682c3538d4963e836e43a211dd17 (diff) | |
download | qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.zip qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.tar.gz qemu-7d60133fcae81b1c829d30ceca4f16eaa26c4d36.tar.bz2 |
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')
-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 6fba6b6..3666e59 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); } |