Skip to contentSkip to conversation

Deprecate the "-no-acpi" command line switch

PATCH In review Thomas Huth 5 participants 5 messages Feb 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Deprecate the "-no-acpi" command line switch

Similar to "-no-hpet", the "-no-acpi" switch is a legacy command line option that should be replaced with the "acpi" machine parameter nowadays.

---
v2: Fixed stypid copy-n-paste bug (Thanks to Sunil for spotting it!)

 docs/about/deprecated.rst | 6 ++++++
 softmmu/vl.c              | 1 +
 2 files changed, 7 insertions(+)
docs/about/deprecated.rst +6 -0
index ee95bcb1a6..15084f7bea 100644
@@ -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)
 ''''''''''''''''''''''''''
 
softmmu/vl.c +1 -0
index 459588aa7d..a3c59b5462 100644
@@ -3271,6 +3271,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:
Signature · 1 line
2.31.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Thomas Huth

Similar to "-no-hpet", the "-no-acpi" switch is a legacy command line option that should be replaced with the "acpi" machine parameter nowadays.

Quoted 8 lines

---
v2: Fixed stypid copy-n-paste bug (Thanks to Sunil for spotting it!)

 docs/about/deprecated.rst | 6 ++++++
 softmmu/vl.c              | 1 +
 2 files changed, 7 insertions(+)
Reviewed-by on v2 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 11 lines · Thomas Huth

Similar to "-no-hpet", the "-no-acpi" switch is a legacy command line option that should be replaced with the "acpi" machine parameter nowadays.

---
v2: Fixed stypid copy-n-paste bug (Thanks to Sunil for spotting it!)

 docs/about/deprecated.rst | 6 ++++++
 softmmu/vl.c              | 1 +
 2 files changed, 7 insertions(+)

For now libvirt is still using '-no-acpi' but it will be an easy fix. I'll send patches on monday. On behalf of libvirt:

Reviewed-by on v2 1/1
#3 lore raw
In reply to Thomas Huth
Quoted 11 lines · Thomas Huth

Similar to "-no-hpet", the "-no-acpi" switch is a legacy command line option that should be replaced with the "acpi" machine parameter nowadays.

---
v2: Fixed stypid copy-n-paste bug (Thanks to Sunil for spotting it!)

  docs/about/deprecated.rst | 6 ++++++
  softmmu/vl.c              | 1 +
  2 files changed, 7 insertions(+)
Reviewed-by on v2 1/1
#4 lore raw
In reply to Thomas Huth
Quoted 5 lines · On Fri, 24 Feb 2023 10:05:43 +0100 Thomas Huth <[email protected]> wrote:

Similar to "-no-hpet", the "-no-acpi" switch is a legacy command line option that should be replaced with the "acpi" machine parameter nowadays.

Quoted 36 lines

---
v2: Fixed stypid copy-n-paste bug (Thanks to Sunil for spotting it!)

 docs/about/deprecated.rst | 6 ++++++
 softmmu/vl.c              | 1 +
 2 files changed, 7 insertions(+)
docs/about/deprecated.rst +6 -0
index ee95bcb1a6..15084f7bea 100644
@@ -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)
 ''''''''''''''''''''''''''
 
softmmu/vl.c +1 -0
index 459588aa7d..a3c59b5462 100644
@@ -3271,6 +3271,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: