* [PATCH v2 0/4] Remove deprecated command line options
@ 2024-01-18 10:37 Thomas Huth
2024-01-18 10:37 ` [PATCH v2 1/4] qemu-options: Remove the deprecated -no-hpet option Thomas Huth
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-18 10:37 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
The -no-hpet, -no-acpi, -async-teardown and -chroot options have been
deprecated for at least two releases, so it should be fine if we remove
them now.
v2:
- Rework some more occurances of -no-acpi in the second patch (Markus)
- Collected Reviewed-bys from v1
- Drop the -singlestep patch since this is handled by Philippe's series:
https://lore.kernel.org/qemu-devel/20240117151430.29235-1-philmd@linaro.org/
Thomas Huth (4):
qemu-options: Remove the deprecated -no-hpet option
qemu-options: Remove the deprecated -no-acpi option
qemu-options: Remove the deprecated -async-teardown option
qemu-options: Remove the deprecated -chroot option
docs/about/deprecated.rst | 22 -------------------
docs/about/removed-features.rst | 23 ++++++++++++++++++++
docs/specs/tpm.rst | 4 ++--
hw/i386/pc.c | 4 ++--
system/vl.c | 19 -----------------
qemu-options.hx | 38 ---------------------------------
6 files changed, 27 insertions(+), 83 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/4] qemu-options: Remove the deprecated -no-hpet option
2024-01-18 10:37 [PATCH v2 0/4] Remove deprecated command line options Thomas Huth
@ 2024-01-18 10:37 ` Thomas Huth
2024-01-18 10:37 ` [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option Thomas Huth
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-18 10:37 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
It's been marked as deprecated since QEMU 8.0, so it should be fine
to remove this now.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
docs/about/deprecated.rst | 6 ------
docs/about/removed-features.rst | 8 ++++++++
system/vl.c | 4 ----
qemu-options.hx | 7 -------
4 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index f48fc83d85..bf2150f00c 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -63,12 +63,6 @@ as short-form boolean values, and passed to plugins as ``arg_name=on``.
However, short-form booleans are deprecated and full explicit ``arg_name=on``
form is preferred.
-``-no-hpet`` (since 8.0)
-''''''''''''''''''''''''
-
-The HPET setting has been turned into a machine property.
-Use ``-machine hpet=off`` instead.
-
``-no-acpi`` (since 8.0)
''''''''''''''''''''''''
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index f04036987b..52d240ade9 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -460,6 +460,14 @@ in this case.
Note that the default audio backend must be configured on the command
line if the ``-nodefaults`` options is used.
+``-no-hpet`` (removed in 9.0)
+'''''''''''''''''''''''''''''
+
+The HPET setting has been turned into a machine property.
+Use ``-machine hpet=off`` instead.
+
+
+
QEMU Machine Protocol (QMP) commands
------------------------------------
diff --git a/system/vl.c b/system/vl.c
index 53850a1daf..f08c4c8193 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3373,10 +3373,6 @@ void qemu_init(int argc, char **argv)
warn_report("-no-acpi is deprecated, use '-machine acpi=off' instead");
qdict_put_str(machine_opts_dict, "acpi", "off");
break;
- case QEMU_OPTION_no_hpet:
- warn_report("-no-hpet is deprecated, use '-machine hpet=off' instead");
- qdict_put_str(machine_opts_dict, "hpet", "off");
- break;
case QEMU_OPTION_no_reboot:
olist = qemu_find_opts("action");
qemu_opts_parse_noisily(olist, "reboot=shutdown", false);
diff --git a/qemu-options.hx b/qemu-options.hx
index b66570ae00..57e447065a 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2654,13 +2654,6 @@ SRST
machine only).
ERST
-DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
- "-no-hpet disable HPET\n", QEMU_ARCH_I386)
-SRST
-``-no-hpet``
- Disable HPET support. Deprecated, use '-machine hpet=off' instead.
-ERST
-
DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
"-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]\n"
" ACPI table description\n", QEMU_ARCH_I386)
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option
2024-01-18 10:37 [PATCH v2 0/4] Remove deprecated command line options Thomas Huth
2024-01-18 10:37 ` [PATCH v2 1/4] qemu-options: Remove the deprecated -no-hpet option Thomas Huth
@ 2024-01-18 10:37 ` Thomas Huth
2024-01-18 10:44 ` Michael Tokarev
2024-01-18 13:21 ` Markus Armbruster
2024-01-18 10:37 ` [PATCH v2 3/4] qemu-options: Remove the deprecated -async-teardown option Thomas Huth
2024-01-18 10:37 ` [PATCH v2 4/4] qemu-options: Remove the deprecated -chroot option Thomas Huth
3 siblings, 2 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-18 10:37 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
It's been marked as deprecated since QEMU 8.0, so it should be fine
to remove this now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
docs/about/deprecated.rst | 6 ------
docs/about/removed-features.rst | 5 +++++
docs/specs/tpm.rst | 4 ++--
hw/i386/pc.c | 4 ++--
system/vl.c | 4 ----
qemu-options.hx | 9 ---------
6 files changed, 9 insertions(+), 23 deletions(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index bf2150f00c..3f8e505df6 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -63,12 +63,6 @@ as short-form boolean values, and passed to plugins as ``arg_name=on``.
However, short-form booleans are deprecated and full explicit ``arg_name=on``
form is preferred.
-``-no-acpi`` (since 8.0)
-''''''''''''''''''''''''
-
-The ``-no-acpi`` setting has been turned into a machine property.
-Use ``-machine acpi=off`` instead.
-
``-async-teardown`` (since 8.1)
'''''''''''''''''''''''''''''''
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index 52d240ade9..ae728b6130 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -466,6 +466,11 @@ line if the ``-nodefaults`` options is used.
The HPET setting has been turned into a machine property.
Use ``-machine hpet=off`` instead.
+``-no-acpi`` (removed in 9.0)
+'''''''''''''''''''''''''''''
+
+The ``-no-acpi`` setting has been turned into a machine property.
+Use ``-machine acpi=off`` instead.
QEMU Machine Protocol (QMP) commands
diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
index c96776a369..68cb8cf7e6 100644
--- a/docs/specs/tpm.rst
+++ b/docs/specs/tpm.rst
@@ -343,9 +343,9 @@ In case an Arm virt machine is emulated, use the following command line:
.. code-block:: console
- qemu-system-aarch64 -machine virt,gic-version=3,accel=kvm \
+ qemu-system-aarch64 -machine virt,gic-version=3,acpi=off \
-cpu host -m 4G \
- -nographic -no-acpi \
+ -nographic -accel kvm \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
-tpmdev emulator,id=tpm0,chardev=chrtpm \
-device tpm-tis-device,tpmdev=tpm0 \
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 496498df3a..058d7fce9f 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1348,7 +1348,7 @@ static void pc_memory_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
Error *local_err = NULL;
/*
- * When -no-acpi is used with Q35 machine type, no ACPI is built,
+ * When "-M acpi=off" is used with Q35 machine type, no ACPI is built,
* but pcms->acpi_dev is still created. Check !acpi_enabled in
* addition to cover this case.
*/
@@ -1396,7 +1396,7 @@ static void pc_memory_unplug_request(HotplugHandler *hotplug_dev,
X86MachineState *x86ms = X86_MACHINE(hotplug_dev);
/*
- * When -no-acpi is used with Q35 machine type, no ACPI is built,
+ * When "-M acpi=off" is used with Q35 machine type, no ACPI is built,
* but pcms->acpi_dev is still created. Check !acpi_enabled in
* addition to cover this case.
*/
diff --git a/system/vl.c b/system/vl.c
index f08c4c8193..7e258889f3 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3369,10 +3369,6 @@ void qemu_init(int argc, char **argv)
display_remote++;
break;
#endif
- case QEMU_OPTION_no_acpi:
- warn_report("-no-acpi is deprecated, use '-machine acpi=off' instead");
- qdict_put_str(machine_opts_dict, "acpi", "off");
- break;
case QEMU_OPTION_no_reboot:
olist = qemu_find_opts("action");
qemu_opts_parse_noisily(olist, "reboot=shutdown", false);
diff --git a/qemu-options.hx b/qemu-options.hx
index 57e447065a..dafecf47d6 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2645,15 +2645,6 @@ SRST
needed to boot from old floppy disks.
ERST
-DEF("no-acpi", 0, QEMU_OPTION_no_acpi,
- "-no-acpi disable ACPI\n", QEMU_ARCH_I386 | QEMU_ARCH_ARM)
-SRST
-``-no-acpi``
- Disable ACPI (Advanced Configuration and Power Interface) support.
- Use it if your guest OS complains about ACPI problems (PC target
- machine only).
-ERST
-
DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
"-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]\n"
" ACPI table description\n", QEMU_ARCH_I386)
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 3/4] qemu-options: Remove the deprecated -async-teardown option
2024-01-18 10:37 [PATCH v2 0/4] Remove deprecated command line options Thomas Huth
2024-01-18 10:37 ` [PATCH v2 1/4] qemu-options: Remove the deprecated -no-hpet option Thomas Huth
2024-01-18 10:37 ` [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option Thomas Huth
@ 2024-01-18 10:37 ` Thomas Huth
2024-01-18 10:37 ` [PATCH v2 4/4] qemu-options: Remove the deprecated -chroot option Thomas Huth
3 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-18 10:37 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
It's been marked as deprecated since QEMU 8.1 (and was only available
since QEMU 8.0 anyway), so it should be fine to remove this now.
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
docs/about/deprecated.rst | 5 -----
docs/about/removed-features.rst | 5 +++++
system/vl.c | 6 ------
qemu-options.hx | 10 ----------
4 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index 3f8e505df6..89ca4490d7 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -63,11 +63,6 @@ as short-form boolean values, and passed to plugins as ``arg_name=on``.
However, short-form booleans are deprecated and full explicit ``arg_name=on``
form is preferred.
-``-async-teardown`` (since 8.1)
-'''''''''''''''''''''''''''''''
-
-Use ``-run-with async-teardown=on`` instead.
-
``-chroot`` (since 8.1)
'''''''''''''''''''''''
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index ae728b6130..43f64a26ba 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -472,6 +472,11 @@ Use ``-machine hpet=off`` instead.
The ``-no-acpi`` setting has been turned into a machine property.
Use ``-machine acpi=off`` instead.
+``-async-teardown`` (removed in 9.0)
+''''''''''''''''''''''''''''''''''''
+
+Use ``-run-with async-teardown=on`` instead.
+
QEMU Machine Protocol (QMP) commands
------------------------------------
diff --git a/system/vl.c b/system/vl.c
index 7e258889f3..924356f864 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3600,12 +3600,6 @@ void qemu_init(int argc, char **argv)
case QEMU_OPTION_daemonize:
os_set_daemonize(true);
break;
-#if defined(CONFIG_LINUX)
- /* deprecated */
- case QEMU_OPTION_asyncteardown:
- init_async_teardown();
- break;
-#endif
case QEMU_OPTION_run_with: {
const char *str;
opts = qemu_opts_parse_noisily(qemu_find_opts("run-with"),
diff --git a/qemu-options.hx b/qemu-options.hx
index dafecf47d6..10c952ba3f 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -4975,16 +4975,6 @@ HXCOMM Internal use
DEF("qtest", HAS_ARG, QEMU_OPTION_qtest, "", QEMU_ARCH_ALL)
DEF("qtest-log", HAS_ARG, QEMU_OPTION_qtest_log, "", QEMU_ARCH_ALL)
-#ifdef __linux__
-DEF("async-teardown", 0, QEMU_OPTION_asyncteardown,
- "-async-teardown enable asynchronous teardown\n",
- QEMU_ARCH_ALL)
-SRST
-``-async-teardown``
- This option is deprecated and should no longer be used. The new option
- ``-run-with async-teardown=on`` is a replacement.
-ERST
-#endif
#ifdef CONFIG_POSIX
DEF("run-with", HAS_ARG, QEMU_OPTION_run_with,
"-run-with [async-teardown=on|off][,chroot=dir]\n"
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 4/4] qemu-options: Remove the deprecated -chroot option
2024-01-18 10:37 [PATCH v2 0/4] Remove deprecated command line options Thomas Huth
` (2 preceding siblings ...)
2024-01-18 10:37 ` [PATCH v2 3/4] qemu-options: Remove the deprecated -async-teardown option Thomas Huth
@ 2024-01-18 10:37 ` Thomas Huth
3 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-18 10:37 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
It's been marked as deprecated since QEMU 8.1, so it should be fine
to remove this now.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
docs/about/deprecated.rst | 5 -----
docs/about/removed-features.rst | 5 +++++
system/vl.c | 5 -----
qemu-options.hx | 12 ------------
4 files changed, 5 insertions(+), 22 deletions(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index 89ca4490d7..004c6421fe 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -63,11 +63,6 @@ as short-form boolean values, and passed to plugins as ``arg_name=on``.
However, short-form booleans are deprecated and full explicit ``arg_name=on``
form is preferred.
-``-chroot`` (since 8.1)
-'''''''''''''''''''''''
-
-Use ``-run-with chroot=dir`` instead.
-
``-singlestep`` (since 8.1)
'''''''''''''''''''''''''''
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index 43f64a26ba..a8546f4787 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -477,6 +477,11 @@ Use ``-machine acpi=off`` instead.
Use ``-run-with async-teardown=on`` instead.
+``-chroot`` (removed in 9.0)
+''''''''''''''''''''''''''''
+
+Use ``-run-with chroot=dir`` instead.
+
QEMU Machine Protocol (QMP) commands
------------------------------------
diff --git a/system/vl.c b/system/vl.c
index 924356f864..c125fb9079 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3592,11 +3592,6 @@ void qemu_init(int argc, char **argv)
exit(1);
}
break;
- case QEMU_OPTION_chroot:
- warn_report("option is deprecated,"
- " use '-run-with chroot=...' instead");
- os_set_chroot(optarg);
- break;
case QEMU_OPTION_daemonize:
os_set_daemonize(true);
break;
diff --git a/qemu-options.hx b/qemu-options.hx
index 10c952ba3f..9be6beb5a0 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -4790,18 +4790,6 @@ SRST
``-nodefaults`` option will disable all those default devices.
ERST
-#ifndef _WIN32
-DEF("chroot", HAS_ARG, QEMU_OPTION_chroot, \
- "-chroot dir chroot to dir just before starting the VM (deprecated)\n",
- QEMU_ARCH_ALL)
-#endif
-SRST
-``-chroot dir``
- Deprecated, use '-run-with chroot=...' instead.
- Immediately before starting guest execution, chroot to the specified
- directory. Especially useful in combination with -runas.
-ERST
-
#ifndef _WIN32
DEF("runas", HAS_ARG, QEMU_OPTION_runas, \
"-runas user change to user id user just before starting the VM\n" \
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option
2024-01-18 10:37 ` [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option Thomas Huth
@ 2024-01-18 10:44 ` Michael Tokarev
2024-01-18 13:21 ` Markus Armbruster
1 sibling, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2024-01-18 10:44 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Paolo Bonzini
Cc: Markus Armbruster, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
18.01.2024 13:37, Thomas Huth:
..
> /*
> - * When -no-acpi is used with Q35 machine type, no ACPI is built,
> + * When "-M acpi=off" is used with Q35 machine type, no ACPI is built,
> * but pcms->acpi_dev is still created. Check !acpi_enabled in
FWIW, it's easier to use "When acpi=off is used with Q35 machine type.."
instead, since acpi=off is a machine property and here we talk about
machine, so the context is quite clear. Here and in the next similar
commit. Just a nitpick, works either way for me.
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
/mjt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option
2024-01-18 10:37 ` [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option Thomas Huth
2024-01-18 10:44 ` Michael Tokarev
@ 2024-01-18 13:21 ` Markus Armbruster
1 sibling, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2024-01-18 13:21 UTC (permalink / raw)
To: Thomas Huth
Cc: qemu-devel, Paolo Bonzini, qemu-trivial, Daniel P . Berrangé,
Philippe Mathieu-Daudé
Thomas Huth <thuth@redhat.com> writes:
> It's been marked as deprecated since QEMU 8.0, so it should be fine
> to remove this now.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-01-18 13:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 10:37 [PATCH v2 0/4] Remove deprecated command line options Thomas Huth
2024-01-18 10:37 ` [PATCH v2 1/4] qemu-options: Remove the deprecated -no-hpet option Thomas Huth
2024-01-18 10:37 ` [PATCH v2 2/4] qemu-options: Remove the deprecated -no-acpi option Thomas Huth
2024-01-18 10:44 ` Michael Tokarev
2024-01-18 13:21 ` Markus Armbruster
2024-01-18 10:37 ` [PATCH v2 3/4] qemu-options: Remove the deprecated -async-teardown option Thomas Huth
2024-01-18 10:37 ` [PATCH v2 4/4] qemu-options: Remove the deprecated -chroot option Thomas Huth
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).