]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/core/machine: Officially deprecate the enforce-config-section parameter
authorThomas Huth <thuth@redhat.com>
Thu, 20 Sep 2018 07:22:07 +0000 (09:22 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 25 Sep 2018 15:26:17 +0000 (17:26 +0200)
Commit 16f7244842b5135543ef068a1adafd94c6965953 added this parameter
to the documentation, including a note that it is deprecated. But it
has never been added to the "Deprecated features" appendix, which is
our official way to deprecate legacy parameters. So let's do this now.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/core/machine.c
qemu-deprecated.texi

index 6b68e1218f8a87a1c8f9bf186f28dfb46d08a246..198755783375406f55e434606468e78294af290a 100644 (file)
@@ -324,6 +324,9 @@ static void machine_set_enforce_config_section(Object *obj, bool value,
 {
     MachineState *ms = MACHINE(obj);
 
+    warn_report("enforce-config-section is deprecated, please use "
+                "-global migration.send-configuration=on|off instead");
+
     ms->enforce_config_section = value;
 }
 
index 9b918f02ec809d0d0cc69db000d83f0f4765fd6a..16ff946b5596e316751d2a7d972fd74ead8c854d 100644 (file)
@@ -35,6 +35,11 @@ which is the default.
 
 @section System emulator command line arguments
 
+@subsection -machine enforce-config-section=on|off (since 3.1)
+
+The @option{enforce-config-section} parameter is replaced by the
+@option{-global migration.send-configuration=@var{on|off}} option.
+
 @subsection -no-kvm (since 1.3.0)
 
 The ``-no-kvm'' argument is now a synonym for setting