qemu-options: Remove the deprecated -no-acpi option
It's been marked as deprecated since QEMU 8.0, so it should be fine to remove this now. Message-ID: <20240118103759.130748-3-thuth@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
		
							parent
							
								
									48c1c25a55
								
							
						
					
					
						commit
						4a64101044
					
				@ -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``
 | 
					However, short-form booleans are deprecated and full explicit ``arg_name=on``
 | 
				
			||||||
form is preferred.
 | 
					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)
 | 
					``-async-teardown`` (since 8.1)
 | 
				
			||||||
'''''''''''''''''''''''''''''''
 | 
					'''''''''''''''''''''''''''''''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -466,6 +466,11 @@ line if the ``-nodefaults`` options is used.
 | 
				
			|||||||
The HPET setting has been turned into a machine property.
 | 
					The HPET setting has been turned into a machine property.
 | 
				
			||||||
Use ``-machine hpet=off`` instead.
 | 
					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
 | 
					QEMU Machine Protocol (QMP) commands
 | 
				
			||||||
 | 
				
			|||||||
@ -343,9 +343,9 @@ In case an Arm virt machine is emulated, use the following command line:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.. code-block:: console
 | 
					.. 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 \
 | 
					    -cpu host -m 4G \
 | 
				
			||||||
    -nographic -no-acpi \
 | 
					    -nographic -accel kvm \
 | 
				
			||||||
    -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
 | 
					    -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
 | 
				
			||||||
    -tpmdev emulator,id=tpm0,chardev=chrtpm \
 | 
					    -tpmdev emulator,id=tpm0,chardev=chrtpm \
 | 
				
			||||||
    -device tpm-tis-device,tpmdev=tpm0 \
 | 
					    -device tpm-tis-device,tpmdev=tpm0 \
 | 
				
			||||||
 | 
				
			|||||||
@ -1348,7 +1348,7 @@ static void pc_memory_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
 | 
				
			|||||||
    Error *local_err = NULL;
 | 
					    Error *local_err = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
     * When -no-acpi is used with Q35 machine type, no ACPI is built,
 | 
					     * When "acpi=off" is used with the Q35 machine type, no ACPI is built,
 | 
				
			||||||
     * but pcms->acpi_dev is still created. Check !acpi_enabled in
 | 
					     * but pcms->acpi_dev is still created. Check !acpi_enabled in
 | 
				
			||||||
     * addition to cover this case.
 | 
					     * addition to cover this case.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@ -1396,7 +1396,7 @@ static void pc_memory_unplug_request(HotplugHandler *hotplug_dev,
 | 
				
			|||||||
    X86MachineState *x86ms = X86_MACHINE(hotplug_dev);
 | 
					    X86MachineState *x86ms = X86_MACHINE(hotplug_dev);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
     * When -no-acpi is used with Q35 machine type, no ACPI is built,
 | 
					     * When "acpi=off" is used with the Q35 machine type, no ACPI is built,
 | 
				
			||||||
     * but pcms->acpi_dev is still created. Check !acpi_enabled in
 | 
					     * but pcms->acpi_dev is still created. Check !acpi_enabled in
 | 
				
			||||||
     * addition to cover this case.
 | 
					     * addition to cover this case.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
				
			|||||||
@ -2647,15 +2647,6 @@ SRST
 | 
				
			|||||||
    needed to boot from old floppy disks.
 | 
					    needed to boot from old floppy disks.
 | 
				
			||||||
ERST
 | 
					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,
 | 
					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"
 | 
					    "-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)
 | 
					    "                ACPI table description\n", QEMU_ARCH_I386)
 | 
				
			||||||
 | 
				
			|||||||
@ -3369,10 +3369,6 @@ void qemu_init(int argc, char **argv)
 | 
				
			|||||||
                display_remote++;
 | 
					                display_remote++;
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
#endif
 | 
					#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:
 | 
					            case QEMU_OPTION_no_reboot:
 | 
				
			||||||
                olist = qemu_find_opts("action");
 | 
					                olist = qemu_find_opts("action");
 | 
				
			||||||
                qemu_opts_parse_noisily(olist, "reboot=shutdown", false);
 | 
					                qemu_opts_parse_noisily(olist, "reboot=shutdown", false);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user