Deprecate the "-no-acpi" command line switch
authorThomas Huth <thuth@redhat.com>
Fri, 24 Feb 2023 09:05:43 +0000 (10:05 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 27 Feb 2023 08:23:21 +0000 (09:23 +0100)
Similar to "-no-hpet", the "-no-acpi" switch is a legacy command
line option that should be replaced with the "acpi" machine parameter
nowadays.

Message-Id: <20230224090543.1129677-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/about/deprecated.rst
softmmu/vl.c

index ee95bcb1a633f444ef8fa7dbdd85bae82ac55a61..15084f7bea4b8ec65c033aa59734b1a66a1b18a0 100644 (file)
@@ -99,6 +99,12 @@ form is preferred.
 The HPET setting has been turned into a machine property.
 Use ``-machine hpet=off`` instead.
 
+``-no-acpi`` (since 8.0)
+''''''''''''''''''''''''
+
+The ``-no-acpi`` setting has been turned into a machine property.
+Use ``-machine acpi=off`` instead.
+
 ``-accel hax`` (since 8.0)
 ''''''''''''''''''''''''''
 
index 6e526d95bbe0a21328f1d379523d7273ddeb761f..f29e4c4dc3b8eb07871694f5cdba593105c04624 100644 (file)
@@ -3264,6 +3264,7 @@ void qemu_init(int argc, char **argv)
                 vnc_parse(optarg);
                 break;
             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_hpet: