Skip to contentSkip to conversation

block: Deprecated options

PATCH Applied Thomas Huth 4 participants 8 messages Dec 18, 2017 – Dec 22, 2017

lore
Share & tools
lore
#0 lore raw

cover block: Deprecated options

Remove the deprecated "-drive boot" and "-hdachs" options and properly mark some other deprecated options in the deprecation chapter.

Thomas Huth (3):
block: Remove the obsolete -drive boot=on|off parameter
block: Remove the deprecated -hdachs option
block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation
chapter

 blockdev.c      | 11 --------
 qemu-doc.texi   | 29 +++++++++----------
 qemu-options.hx | 19 ++-----------
 vl.c            | 86 ++-------------------------------------------------------
 4 files changed, 19 insertions(+), 126 deletions(-)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/3 block: Remove the obsolete -drive boot=on|off parameter

It's not working anymore since QEMU v1.3.0 - time to remove it now.

---
 blockdev.c    | 11 -----------
 qemu-doc.texi |  6 ------
 2 files changed, 17 deletions(-)
blockdev.c +0 -11
index 56a6b24..c21ba27 100644
@@ -734,10 +734,6 @@ QemuOptsList qemu_legacy_drive_opts = {
             .type = QEMU_OPT_STRING,
             .help = "chs translation (auto, lba, none)",
         },{
-            .name = "boot",
-            .type = QEMU_OPT_BOOL,
-            .help = "(deprecated, ignored)",
-        },{
             .name = "addr",
             .type = QEMU_OPT_STRING,
             .help = "pci address (virtio only)",
@@ -872,13 +868,6 @@ DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type)
         goto fail;
     }
 
-    /* Deprecated option boot=[on|off] */
-    if (qemu_opt_get(legacy_opts, "boot") != NULL) {
-        fprintf(stderr, "qemu-kvm: boot=on|off is deprecated and will be "
-                "ignored. Future versions will reject this parameter. Please "
-                "update your scripts.\n");
-    }
-
     /* Other deprecated options */
     if (!qtest_enabled()) {
         for (i = 0; i < ARRAY_SIZE(deprecated); i++) {
qemu-doc.texi +0 -6
index f7317df..e313bf1 100644
@@ -2373,12 +2373,6 @@ deprecated.
 
 @section System emulator command line arguments
 
-@subsection -drive boot=on|off (since 1.3.0)
-
-The ``boot=on|off'' option to the ``-drive'' argument is
-ignored. Applications should use the ``bootindex=N'' parameter
-to set an absolute ordering between devices instead.
-
 @subsection -tdf (since 1.3.0)
 
 The ``-tdf'' argument is ignored. The behaviour implemented
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 2/3 block: Remove the deprecated -hdachs option

In reply to Thomas Huth

It's been marked as deprecated since QEMU v2.10.0, and so far nobody complained that we should keep it, so let's remove this legacy option now to simplify the code quite a bit.

---
 qemu-doc.texi   |  8 ------
 qemu-options.hx | 19 ++-----------
 vl.c            | 86 ++-------------------------------------------------------
 3 files changed, 4 insertions(+), 109 deletions(-)
qemu-doc.texi +0 -8
index e313bf1..af495ad 100644
@@ -2475,14 +2475,6 @@ The ``--net dump'' argument is now replaced with the
 ``-object filter-dump'' argument which works in combination
 with the modern ``-netdev`` backends instead.
 
-@subsection -hdachs (since 2.10.0)
-
-The ``-hdachs'' argument is now a synonym for setting
-the ``cyls'', ``heads'', ``secs'', and ``trans'' properties
-on the ``ide-hd'' device using the ``-device'' argument.
-The new syntax allows different settings to be provided
-per disk.
-
 @subsection -usbdevice (since 2.10.0)
 
 The ``-usbdevice DEV'' argument is now a synonym for setting
qemu-options.hx +2 -17
index 32d9378..828546c 100644
@@ -846,8 +846,8 @@ of available connectors of a given interface type.
 @item media=@var{media}
 This option defines the type of the media: disk or cdrom.
 @item cyls=@var{c},heads=@var{h},secs=@var{s}[,trans=@var{t}]
-These options have the same definition as they have in @option{-hdachs}.
-These parameters are deprecated, use the corresponding parameters
+Force disk physical geometry and the optional BIOS translation (trans=none or
+lba). These parameters are deprecated, use the corresponding parameters
 of @code{-device} instead.
 @item snapshot=@var{snapshot}
 @var{snapshot} is "on" or "off" and controls snapshot mode for the given drive
@@ -1027,21 +1027,6 @@ the raw disk image you use is not written back. You can however force
 the write back by pressing @key{C-a s} (@pxref{disk_images}).
 ETEXI
 
-DEF("hdachs", HAS_ARG, QEMU_OPTION_hdachs, \
-    "-hdachs c,h,s[,t]\n" \
-    "                force hard disk 0 physical geometry and the optional BIOS\n" \
-    "                translation (t=none or lba) (usually QEMU can guess them)\n",
-    QEMU_ARCH_ALL)
-STEXI
-@item -hdachs @var{c},@var{h},@var{s},[,@var{t}]
-@findex -hdachs
-Force hard disk 0 physical geometry (1 <= @var{c} <= 16383, 1 <=
-@var{h} <= 16, 1 <= @var{s} <= 63) and optionally force the BIOS
-translation mode (@var{t}=none, lba or auto). Usually QEMU can guess
-all those parameters. This option is deprecated, please use
-@code{-device ide-hd,cyls=c,heads=h,secs=s,...} instead.
-ETEXI
-
 DEF("fsdev", HAS_ARG, QEMU_OPTION_fsdev,
     "-fsdev fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}]\n"
     " [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd][,fmode=fmode][,dmode=dmode]\n"
vl.c +2 -84

117 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#3 lore raw

PATCH 3/3 block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter

In reply to Thomas Huth

Looks like we forgot to announce the deprecation of these options in the corresponding chapter of the qemu-doc text, so let's do that now.

---
 qemu-doc.texi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
qemu-doc.texi +15 -0
index af495ad..f6afe01 100644
@@ -2469,6 +2469,21 @@ longer be directly supported in QEMU.
 The ``-drive if=scsi'' argument is replaced by the the
 ``-device BUS-TYPE'' argument combined with ``-drive if=none''.
 
+@subsection -drive cyls=...,heads=...,secs=...,trans=... (since 2.10.0)
+
+The drive geometry arguments are replaced by the the geometry arguments
+that can be specified with the ``-device'' parameter.
+
+@subsection -drive serial=... (since 2.10.0)
+
+The drive serial argument is replaced by the the serial argument
+that can be specified with the ``-device'' parameter.
+
+@subsection -drive addr=... (since 2.10.0)
+
+The drive addr argument is replaced by the the addr argument
+that can be specified with the ``-device'' parameter.
+
 @subsection -net dump (since 2.10.0)
 
 The ``--net dump'' argument is now replaced with the
Signature · 1 line
1.8.3.1
Reviewed-by on the v1 series
#5 lore raw
In reply to Thomas Huth
Quoted 9 lines · Thomas Huth

Remove the deprecated "-drive boot" and "-hdachs" options and properly mark some other deprecated options in the deprecation chapter.

Thomas Huth (3):
block: Remove the obsolete -drive boot=on|off parameter
block: Remove the deprecated -hdachs option
block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation
chapter

Quoted 6 lines
 blockdev.c      | 11 --------
 qemu-doc.texi   | 29 +++++++++----------
 qemu-options.hx | 19 ++-----------
 vl.c            | 86 ++-------------------------------------------------------
 4 files changed, 19 insertions(+), 126 deletions(-)

So long, farewell: however, since we forgot to document them, can we remove them already?

#6 lore raw
Quoted 12 lines · John Snow
Quoted 9 lines · Thomas Huth

Remove the deprecated "-drive boot" and "-hdachs" options and properly mark some other deprecated options in the deprecation chapter.

Thomas Huth (3):
block: Remove the obsolete -drive boot=on|off parameter
block: Remove the deprecated -hdachs option
block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation
chapter

Quoted 8 lines
Quoted 6 lines
 blockdev.c      | 11 --------
 qemu-doc.texi   | 29 +++++++++----------
 qemu-options.hx | 19 ++-----------
 vl.c            | 86 ++-------------------------------------------------------
 4 files changed, 19 insertions(+), 126 deletions(-)

Thanks!

Quoted 2 lines

So long, farewell: however, since we forgot to document them, can we remove them already?

The are documented in
https://qemu.weilnetz.de/doc/qemu-doc.html#Block-device-options so I doubt that we can simply drop them without announcing it first?

Thomas

Applied
#7 lore raw
In reply to Thomas Huth

Am 18.12.2017 um 18:14 hat Thomas Huth geschrieben:

Quoted 8 lines

Remove the deprecated "-drive boot" and "-hdachs" options and properly mark some other deprecated options in the deprecation chapter.

Thomas Huth (3):
block: Remove the obsolete -drive boot=on|off parameter
block: Remove the deprecated -hdachs option
block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation
chapter

Thanks, applied to the block branch.

Kevin