* [Qemu-devel] [PATCH 0/3] block: Deprecated options
@ 2017-12-18 17:14 Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 1/3] block: Remove the obsolete -drive boot=on|off parameter Thomas Huth
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Thomas Huth @ 2017-12-18 17:14 UTC (permalink / raw)
To: qemu-block, Kevin Wolf, Max Reitz; +Cc: qemu-devel, Markus Armbruster
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(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [PATCH 1/3] block: Remove the obsolete -drive boot=on|off parameter
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
@ 2017-12-18 17:14 ` Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 2/3] block: Remove the deprecated -hdachs option Thomas Huth
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2017-12-18 17:14 UTC (permalink / raw)
To: qemu-block, Kevin Wolf, Max Reitz; +Cc: qemu-devel, Markus Armbruster
It's not working anymore since QEMU v1.3.0 - time to remove it now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
blockdev.c | 11 -----------
qemu-doc.texi | 6 ------
2 files changed, 17 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 56a6b24..c21ba27 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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++) {
diff --git a/qemu-doc.texi b/qemu-doc.texi
index f7317df..e313bf1 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -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
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PATCH 2/3] block: Remove the deprecated -hdachs option
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 1/3] block: Remove the obsolete -drive boot=on|off parameter Thomas Huth
@ 2017-12-18 17:14 ` Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 3/3] block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter Thomas Huth
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2017-12-18 17:14 UTC (permalink / raw)
To: qemu-block, Kevin Wolf, Max Reitz; +Cc: qemu-devel, Markus Armbruster
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.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
qemu-doc.texi | 8 ------
qemu-options.hx | 19 ++-----------
vl.c | 86 ++-------------------------------------------------------
3 files changed, 4 insertions(+), 109 deletions(-)
diff --git a/qemu-doc.texi b/qemu-doc.texi
index e313bf1..af495ad 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -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
diff --git a/qemu-options.hx b/qemu-options.hx
index 32d9378..828546c 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -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"
diff --git a/vl.c b/vl.c
index e9012bb..a797243 100644
--- a/vl.c
+++ b/vl.c
@@ -3052,9 +3052,8 @@ int main(int argc, char **argv, char **envp)
const char *boot_order = NULL;
const char *boot_once = NULL;
DisplayState *ds;
- int cyls, heads, secs, translation;
QemuOpts *opts, *machine_opts;
- QemuOpts *hda_opts = NULL, *icount_opts = NULL, *accel_opts = NULL;
+ QemuOpts *icount_opts = NULL, *accel_opts = NULL;
QemuOptsList *olist;
int optind;
const char *optarg;
@@ -3146,8 +3145,6 @@ int main(int argc, char **argv, char **envp)
cpu_model = NULL;
snapshot = 0;
- cyls = heads = secs = 0;
- translation = BIOS_ATA_TRANSLATION_AUTO;
nb_nics = 0;
@@ -3186,7 +3183,7 @@ int main(int argc, char **argv, char **envp)
if (optind >= argc)
break;
if (argv[optind][0] != '-') {
- hda_opts = drive_add(IF_DEFAULT, 0, argv[optind++], HD_OPTS);
+ drive_add(IF_DEFAULT, 0, argv[optind++], HD_OPTS);
} else {
const QEMUOption *popt;
@@ -3206,21 +3203,6 @@ int main(int argc, char **argv, char **envp)
cpu_model = optarg;
break;
case QEMU_OPTION_hda:
- {
- char buf[256];
- if (cyls == 0)
- snprintf(buf, sizeof(buf), "%s", HD_OPTS);
- else
- snprintf(buf, sizeof(buf),
- "%s,cyls=%d,heads=%d,secs=%d%s",
- HD_OPTS , cyls, heads, secs,
- translation == BIOS_ATA_TRANSLATION_LBA ?
- ",trans=lba" :
- translation == BIOS_ATA_TRANSLATION_NONE ?
- ",trans=none" : "");
- drive_add(IF_DEFAULT, 0, optarg, buf);
- break;
- }
case QEMU_OPTION_hdb:
case QEMU_OPTION_hdc:
case QEMU_OPTION_hdd:
@@ -3271,70 +3253,6 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_snapshot:
snapshot = 1;
break;
- case QEMU_OPTION_hdachs:
- {
- const char *p;
- p = optarg;
- cyls = strtol(p, (char **)&p, 0);
- if (cyls < 1 || cyls > 16383)
- goto chs_fail;
- if (*p != ',')
- goto chs_fail;
- p++;
- heads = strtol(p, (char **)&p, 0);
- if (heads < 1 || heads > 16)
- goto chs_fail;
- if (*p != ',')
- goto chs_fail;
- p++;
- secs = strtol(p, (char **)&p, 0);
- if (secs < 1 || secs > 63)
- goto chs_fail;
- if (*p == ',') {
- p++;
- if (!strcmp(p, "large")) {
- translation = BIOS_ATA_TRANSLATION_LARGE;
- } else if (!strcmp(p, "rechs")) {
- translation = BIOS_ATA_TRANSLATION_RECHS;
- } else if (!strcmp(p, "none")) {
- translation = BIOS_ATA_TRANSLATION_NONE;
- } else if (!strcmp(p, "lba")) {
- translation = BIOS_ATA_TRANSLATION_LBA;
- } else if (!strcmp(p, "auto")) {
- translation = BIOS_ATA_TRANSLATION_AUTO;
- } else {
- goto chs_fail;
- }
- } else if (*p != '\0') {
- chs_fail:
- error_report("invalid physical CHS format");
- exit(1);
- }
- if (hda_opts != NULL) {
- qemu_opt_set_number(hda_opts, "cyls", cyls,
- &error_abort);
- qemu_opt_set_number(hda_opts, "heads", heads,
- &error_abort);
- qemu_opt_set_number(hda_opts, "secs", secs,
- &error_abort);
- if (translation == BIOS_ATA_TRANSLATION_LARGE) {
- qemu_opt_set(hda_opts, "trans", "large",
- &error_abort);
- } else if (translation == BIOS_ATA_TRANSLATION_RECHS) {
- qemu_opt_set(hda_opts, "trans", "rechs",
- &error_abort);
- } else if (translation == BIOS_ATA_TRANSLATION_LBA) {
- qemu_opt_set(hda_opts, "trans", "lba",
- &error_abort);
- } else if (translation == BIOS_ATA_TRANSLATION_NONE) {
- qemu_opt_set(hda_opts, "trans", "none",
- &error_abort);
- }
- }
- }
- 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"),
optarg, true);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [PATCH 3/3] block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 1/3] block: Remove the obsolete -drive boot=on|off parameter Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 2/3] block: Remove the deprecated -hdachs option Thomas Huth
@ 2017-12-18 17:14 ` Thomas Huth
2017-12-19 9:55 ` [Qemu-devel] [PATCH 0/3] block: Deprecated options Markus Armbruster
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2017-12-18 17:14 UTC (permalink / raw)
To: qemu-block, Kevin Wolf, Max Reitz; +Cc: qemu-devel, Markus Armbruster
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.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
qemu-doc.texi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/qemu-doc.texi b/qemu-doc.texi
index af495ad..f6afe01 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -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
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH 0/3] block: Deprecated options
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
` (2 preceding siblings ...)
2017-12-18 17:14 ` [Qemu-devel] [PATCH 3/3] block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter Thomas Huth
@ 2017-12-19 9:55 ` Markus Armbruster
2017-12-20 21:40 ` [Qemu-devel] [Qemu-block] " John Snow
2017-12-22 14:01 ` [Qemu-devel] " Kevin Wolf
5 siblings, 0 replies; 8+ messages in thread
From: Markus Armbruster @ 2017-12-19 9:55 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-block, Kevin Wolf, Max Reitz, qemu-devel
Thomas Huth <thuth@redhat.com> writes:
> Remove the deprecated "-drive boot" and "-hdachs" options and properly
> mark some other deprecated options in the deprecation chapter.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [Qemu-block] [PATCH 0/3] block: Deprecated options
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
` (3 preceding siblings ...)
2017-12-19 9:55 ` [Qemu-devel] [PATCH 0/3] block: Deprecated options Markus Armbruster
@ 2017-12-20 21:40 ` John Snow
2017-12-21 7:27 ` Thomas Huth
2017-12-22 14:01 ` [Qemu-devel] " Kevin Wolf
5 siblings, 1 reply; 8+ messages in thread
From: John Snow @ 2017-12-20 21:40 UTC (permalink / raw)
To: Thomas Huth, qemu-block, Kevin Wolf, Max Reitz
Cc: qemu-devel, Markus Armbruster
On 12/18/2017 12:14 PM, Thomas Huth wrote:
> 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(-)
>
Reviewed-by: John Snow <jsnow@redhat.com>
So long, farewell: however, since we forgot to document them, can we
remove them already?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [Qemu-block] [PATCH 0/3] block: Deprecated options
2017-12-20 21:40 ` [Qemu-devel] [Qemu-block] " John Snow
@ 2017-12-21 7:27 ` Thomas Huth
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2017-12-21 7:27 UTC (permalink / raw)
To: John Snow, qemu-block, Kevin Wolf, Max Reitz
Cc: qemu-devel, Markus Armbruster
On 20.12.2017 22:40, John Snow wrote:
>
>
> On 12/18/2017 12:14 PM, Thomas Huth wrote:
>> 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(-)
>>
>
> Reviewed-by: John Snow <jsnow@redhat.com>
Thanks!
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH 0/3] block: Deprecated options
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
` (4 preceding siblings ...)
2017-12-20 21:40 ` [Qemu-devel] [Qemu-block] " John Snow
@ 2017-12-22 14:01 ` Kevin Wolf
5 siblings, 0 replies; 8+ messages in thread
From: Kevin Wolf @ 2017-12-22 14:01 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-block, Max Reitz, qemu-devel, Markus Armbruster
Am 18.12.2017 um 18:14 hat Thomas Huth geschrieben:
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-12-22 14:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18 17:14 [Qemu-devel] [PATCH 0/3] block: Deprecated options Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 1/3] block: Remove the obsolete -drive boot=on|off parameter Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 2/3] block: Remove the deprecated -hdachs option Thomas Huth
2017-12-18 17:14 ` [Qemu-devel] [PATCH 3/3] block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter Thomas Huth
2017-12-19 9:55 ` [Qemu-devel] [PATCH 0/3] block: Deprecated options Markus Armbruster
2017-12-20 21:40 ` [Qemu-devel] [Qemu-block] " John Snow
2017-12-21 7:27 ` Thomas Huth
2017-12-22 14:01 ` [Qemu-devel] " Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).