From nobody Mon Feb 9 12:25:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690531954; cv=none; d=zohomail.com; s=zohoarc; b=J9NVLTDhQWPC5Mg2X4A+FCmGx1ZaADmDe0VjMftlHyFudraAJ357VTndhnusdDNx+8BKpMNVt/KJ5jGcz2UGb5GZlUsBxsPirK7vWhGXAqjrQmrHdAlwAgU0u7YUfIAhD3hSilAKTu2+b0MW3OrPQOZTBVoJWfCGb8z0zZwOfP4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690531954; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0NoCTv9ND8NyRd8Imv0EfVHVbZLpOJjkamK2GjzJjso=; b=mByz093sNeyVfwwHa76rgWre38GZnCkQBvKsSLjnFQ9uin9DJrBKQUIzi14FHAAg4SPVcQ5XK88aoNHQ/B4aU/Mtvyug+EwShBKbEi2wIxtjty9OZMypFeGIiWHB2wTjfuKXgy1jIVGagV7ua67dUki2qXSK6nzFdF6SAh8bG9w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 16905319540171004.2156671595948; Fri, 28 Jul 2023 01:12:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-633-I1I1v965PiiBlHsi4hGKZQ-1; Fri, 28 Jul 2023 04:12:29 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CE0FD3C10142; Fri, 28 Jul 2023 08:12:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B629D46A3A7; Fri, 28 Jul 2023 08:12:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7AA721946A6A; Fri, 28 Jul 2023 08:12:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E91D81946586 for ; Fri, 28 Jul 2023 08:12:25 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D7D9B111F3BB; Fri, 28 Jul 2023 08:12:25 +0000 (UTC) Received: from localhost.localdomain (unknown [10.72.112.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D8591120AC7; Fri, 28 Jul 2023 08:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690531952; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=0NoCTv9ND8NyRd8Imv0EfVHVbZLpOJjkamK2GjzJjso=; b=fVIKeMlxl6C+Hfo3sy8i8+2BaVtcAuw1Q9zjN4CP3gelIe8R1eLJ2fnhwvZ3wbgc42sDHv hzyBmJ9p+oZVcwxEMa7JGHWZYAbsbbXZOBfTCP6MSsjdXqpKCT+JVHqO1efvuOZLsehdEc Q8foFlAfF2LpVB7Dq6RdFPY9CSkzFAg= X-MC-Unique: I1I1v965PiiBlHsi4hGKZQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Han Han To: libvir-list@redhat.com Subject: [PATCH 3/3] qemu/qemu_validate: Add capability check for the model igb Date: Fri, 28 Jul 2023 16:09:38 +0800 Message-ID: <20230728081215.271355-4-hhan@redhat.com> In-Reply-To: <20230728081215.271355-1-hhan@redhat.com> References: <20230728081215.271355-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Han Han Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690531956085100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Han Han --- 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 virDomainNe= tDef *net, } } =20 + if (net->model =3D=3D VIR_DOMAIN_NET_MODEL_IGB && + !virQEMUCapsGet(qemuCaps, QEMU_CAPS_IGB)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("interface model igb is not supported with this Q= EMU binary")); + return -1; + } + if (net->mtu && !qemuDomainNetSupportsMTU(net->type, net->backend.type)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, --=20 2.41.0