qemu: capabilities: Note that basing probing on 'query-command-line-options' should be avoided

Add a comment that will attempt to discourage adding new capabilities
based on 'query-command-line-options'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-07-26 14:01:15 +02:00
parent 42e7f6a35b
commit ef5f998a96

View File

@ -3221,6 +3221,10 @@ struct virQEMUCapsCommandLineProps {
int flag;
};
/* This uses 'query-command-line-options' which uses old-style argument parsers
* in qemu and thus isn't being properly extended. Other means to detect
* features should be used if possible. */
static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
{ "boot-opts", "strict", QEMU_CAPS_BOOT_STRICT },
{ "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },