i386: Deprecate the -no-hpet QEMU command line option
authorThomas Huth <thuth@redhat.com>
Thu, 29 Dec 2022 11:49:13 +0000 (12:49 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 9 Jan 2023 12:50:47 +0000 (13:50 +0100)
The HPET setting has been turned into a machine property a while ago
already, so we should finally do the next step and deprecate the
legacy CLI option, too.

Message-Id: <20221229114913.260400-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/about/deprecated.rst
qemu-options.hx
softmmu/vl.c

index 93affe3669ffb1b420d5672df4e08fac486e2143..2ae6a79b2140d5ddb1628707514993673e757c95 100644 (file)
@@ -114,6 +114,12 @@ form is preferred.
 Using ``-drive if=none`` to configure the OTP device of the sifive_u
 RISC-V machine is deprecated. Use ``-drive if=pflash`` instead.
 
+``-no-hpet`` (since 8.0)
+''''''''''''''''''''''''
+
+The HPET setting has been turned into a machine property.
+Use ``-machine hpet=off`` instead.
+
 
 QEMU Machine Protocol (QMP) commands
 ------------------------------------
index 7f99d15b231fecc6c302bad610c576edde729339..a3adb4163ea3d106b45c066c5ff8701e6f5e1730 100644 (file)
@@ -2542,7 +2542,7 @@ DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
     "-no-hpet        disable HPET\n", QEMU_ARCH_I386)
 SRST
 ``-no-hpet``
-    Disable HPET support.
+    Disable HPET support. Deprecated, use '-machine hpet=off' instead.
 ERST
 
 DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
index 798e1dc933f3fd67b3a91c74c0a2daa66dd4252a..9bd0e52d016ae44c008f2c429443768ad8b0995e 100644 (file)
@@ -3259,6 +3259,7 @@ void qemu_init(int argc, char **argv)
                 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: