Skip to content

Commit

Permalink
hw/core/machine: Officially deprecate the enforce-config-section para…
Browse files Browse the repository at this point in the history
…meter

Commit 16f7244 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>
  • Loading branch information
huth committed Sep 25, 2018
1 parent 68cb29e commit 91c082a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/core/machine.c
Expand Up @@ -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;
}

Expand Down
5 changes: 5 additions & 0 deletions qemu-deprecated.texi
Expand Up @@ -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
Expand Down

0 comments on commit 91c082a

Please sign in to comment.