Skip to contentSkip to conversation

Deprecate the "-no-acpi" command line switch

PATCH Superseded Thomas Huth 3 participants 6 messages Feb 24, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 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..07d5215325 100644
@@ -3271,6 +3271,7 @@ void qemu_init(int argc, char **argv)
                 vnc_parse(optarg);
                 break;
             case QEMU_OPTION_no_acpi:
+                warn_report("-no-hpet 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
#2 lore raw
In reply to Thomas Huth
Quoted 32 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.

---
 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 +0 -0
index 459588aa7d..07d5215325 100644

softmmu/vl.c void qemu_init(int argc, char **argv) · line 3274

Quoted 4 lines
softmmu/vl.c +1 -0
@@ -3271,6 +3271,7 @@ void qemu_init(int argc, char **argv)
                 vnc_parse(optarg);
                 break;
             case QEMU_OPTION_no_acpi:
+                warn_report("-no-hpet is deprecated, use '-machine acpi=off' instead");

"no-acpi" is deprecated?

Is my understanding correct that there is no need to update qemu-options.hx ?

Thanks,
Sunil

#3 lore raw
Quoted 28 lines · Sunil V L
Quoted 27 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.

---
  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)
  ''''''''''''''''''''''''''
 
Quoted 11 lines

softmmu/vl.c void qemu_init(int argc, char **argv) · line 3274

Quoted 9 lines
softmmu/vl.c +1 -0
index 459588aa7d..07d5215325 100644
@@ -3271,6 +3271,7 @@ void qemu_init(int argc, char **argv)
                  vnc_parse(optarg);
                  break;
              case QEMU_OPTION_no_acpi:
+                warn_report("-no-hpet is deprecated, use '-machine acpi=off' instead");

"no-acpi" is deprecated?

That's at least my plan. The patch is under discussion, but at least in my opinion, this option should go away in the long run, yes.

Quoted 1 line

Is my understanding correct that there is no need to update qemu-options.hx ?

If nobody objects to my patch here, it indeed does not make too much sense to enable -no-acpi on risc-v or other platforms now, yes.

Thomas

#4 lore raw
Quoted 39 lines · Thomas Huth
Quoted 29 lines · Sunil V L
Quoted 28 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.

---
  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 +0 -1
index 459588aa7d..07d5215325 100644
--- a/softmmu/vl.c
Quoted 8 lines

softmmu/vl.c void qemu_init(int argc, char **argv) · line 3274

Quoted 6 lines

+++ b/softmmu/vl.c

softmmu/vl.c +1 -0
@@ -3271,6 +3271,7 @@ void qemu_init(int argc, char **argv)
                  vnc_parse(optarg);
                  break;
              case QEMU_OPTION_no_acpi:
+                warn_report("-no-hpet is deprecated, use '-machine acpi=off' instead");

"no-acpi" is deprecated?

Quoted 3 lines

That's at least my plan. The patch is under discussion, but at least in my opinion, this option should go away in the long run, yes.

Sorry for not being clear. It is mentioned as -no-hpet is deprecated. It should be -no-acpi.

Thanks,
Sunil

#5 lore raw
Quoted 40 lines · Sunil V L
Quoted 39 lines · Thomas Huth
Quoted 37 lines · Sunil V L
Quoted 30 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.

---
   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 +0 -0
index 459588aa7d..07d5215325 100644

softmmu/vl.c void qemu_init(int argc, char **argv) · line 3274

Quoted 4 lines
softmmu/vl.c +1 -0
@@ -3271,6 +3271,7 @@ void qemu_init(int argc, char **argv)
                   vnc_parse(optarg);
                   break;
               case QEMU_OPTION_no_acpi:
+                warn_report("-no-hpet is deprecated, use '-machine acpi=off' instead");

"no-acpi" is deprecated?

Quoted 5 lines
Quoted 3 lines

That's at least my plan. The patch is under discussion, but at least in my opinion, this option should go away in the long run, yes.

Sorry for not being clear. It is mentioned as -no-hpet is deprecated. It should be -no-acpi.

D'oh, stupid copy-n-paste bug! Thanks, I'll send a v2 :-)

Thomas