]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: conf: Add 'deprecation_behavior' setting to qemu.conf
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Apr 2020 11:27:58 +0000 (13:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 15:07:05 +0000 (17:07 +0200)
commit700450449377be4bf923e91d00f8fe8cf0975f66
treec24d75d1fb2a50bd618adc6ec199eea25b002b63
parentd8793c6832dcc22ab63e843f6fb943de748a149f
qemu: conf: Add 'deprecation_behavior' setting to qemu.conf

New QEMU supports a harsh, but hard to ignore way to notify that the
QMP user used a deprecated command. This is useful e.g. for developers
to see that something needs to be fixed.

This patch introduces a qemu.conf option to enable the setting in cases
when qemu supports it so that developers and continiuous integration
efforts are notified about use of deprecated fields before it's too
late.

The option is deliberately stored as string and not validated to prevent
failures when downgrading qemu or libvirt versions. While we don't
support this, the knob isn't meant for public consumption anyways.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/test_libvirtd_qemu.aug.in