[libvirt PATCH 7/9] virsh: Add "validate" argument to [hypervisor-]cpu-compare

Ján Tomko jtomko at redhat.com
Tue Sep 29 09:45:55 UTC 2020


On a Tuesday in 2020, Peter Krempa wrote:
>On Mon, Sep 21, 2020 at 15:07:30 +0200, Tim Wiederhake wrote:
>
>Again the summary is misleading and empty commit message doesn't help.
>
>This patch also adds a flag to the public API which is an important
>change rather than just modifying virsh.
>

The virsh changes should be separated from the API changes.

Jano

>The summary should mention the public API change rather than the virsh
>bit.
>
>> Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
>> ---
>>  include/libvirt/libvirt-host.h |  1 +
>>  src/bhyve/bhyve_driver.c       |  7 +++++--
>>  src/libxl/libxl_driver.c       |  7 +++++--
>>  src/qemu/qemu_driver.c         | 18 +++++++++++++-----
>>  tools/virsh-host.c             | 14 ++++++++++++++
>>  5 files changed, 38 insertions(+), 9 deletions(-)
>
>[...]
>
>> diff --git a/tools/virsh-host.c b/tools/virsh-host.c
>> index 722c47958b..80edfae16c 100644
>> --- a/tools/virsh-host.c
>> +++ b/tools/virsh-host.c
>> @@ -1214,6 +1214,10 @@ static const vshCmdOptDef opts_cpu_compare[] = {
>>       .type = VSH_OT_BOOL,
>>       .help = N_("report error if CPUs are incompatible")
>>      },
>> +    {.name = "validate",
>> +     .type = VSH_OT_BOOL,
>> +     .help = N_("enable XML file validation")
>> +    },
>>      {.name = NULL}
>>  };
>
>Missing addition to virsh man page
>
>[...]
>
>> @@ -1636,6 +1643,10 @@ static const vshCmdOptDef opts_hypervisor_cpu_compare[] = {
>>       .type = VSH_OT_BOOL,
>>       .help = N_("report error if CPUs are incompatible")
>>      },
>> +    {.name = "validate",
>> +     .type = VSH_OT_BOOL,
>> +     .help = N_("enable XML file validation")
>> +    },
>>      {.name = NULL}
>>  };
>
>Missing addition to virsh man page
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200929/14bc060d/attachment-0001.sig>


More information about the libvir-list mailing list