aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-04-27 07:20:54 +0200
committerKevin Wolf <kwolf@redhat.com>2017-04-27 15:40:40 +0200
commitfea41826db2b14402430b41ed30dd4623353f681 (patch)
treeeb878ec89c2dd4c26df627b25664418491ecc4e7 /vl.c
parent03a0aa37d225384ec265bcae18ee1dd410b9b601 (diff)
downloadqemu-fea41826db2b14402430b41ed30dd4623353f681.zip
qemu-fea41826db2b14402430b41ed30dd4623353f681.tar.gz
qemu-fea41826db2b14402430b41ed30dd4623353f681.tar.bz2
Issue a deprecation warning if the user specifies the "-hdachs" option.
If the user needs to specify the disk geometry, the corresponding parameters of the "-device ide-hd" option should be used instead. "-hdachs" is considered as deprecated and might be removed soon. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index f46e070..42d4bce 100644
--- a/vl.c
+++ b/vl.c
@@ -3231,6 +3231,8 @@ int main(int argc, char **argv, char **envp)
}
}
}
+ error_report("'-hdachs' is deprecated, please use '-device"
+ " ide-hd,cyls=c,heads=h,secs=s,...' instead");
break;
case QEMU_OPTION_numa:
opts = qemu_opts_parse_noisily(qemu_find_opts("numa"),