Re: [PATCH 3/3] qemu/qemu_validate: Add capability check for the model igb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 28, 2023 at 16:09:38 +0800, Han Han wrote:
> Signed-off-by: Han Han <hhan@xxxxxxxxxx>
> ---
>  src/qemu/qemu_validate.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
> index d5c2b2cd44..a5eb96c9b5 100644
> --- a/src/qemu/qemu_validate.c
> +++ b/src/qemu/qemu_validate.c
> @@ -1858,6 +1858,13 @@ qemuValidateDomainDeviceDefNetwork(const virDomainNetDef *net,
>          }
>      }
>  
> +    if (net->model == VIR_DOMAIN_NET_MODEL_IGB &&
> +        !virQEMUCapsGet(qemuCaps, QEMU_CAPS_IGB)) {
> +        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> +                       _("interface model igb is not supported with this QEMU binary"));
> +        return -1;
> +    }

NACK, this was already discussed and is not needed:

https://listman.redhat.com/archives/libvir-list/2023-April/239345.html




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux