From nobody Tue Feb 10 22:17:52 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 ARC-Seal: i=1; a=rsa-sha256; t=1681300963; cv=none; d=zohomail.com; s=zohoarc; b=RuXajNnqSzcm1KrIt9KDKmYbd4A0+PvsKim3MAsQaxjQ/kn01lO1eH9e8zXO+ZNZOsV3TjMlyZ7l+DjxDxH9Z/0LlQOfPRwc0C9uXCiO98Cgwkhu99iepOjZRlOJqXDsWPiUcShei5pRnM8kxJmmfP7DT3RluIyV2OSgw8w5kis= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681300963; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject; bh=JX94SR7vIBdJ+qRfQ/h7KOhCo+CoUnEiHk48rhnBSTQ=; b=VmV1IJjuAuiheyO/7ghbBks0sPpiR/KIExQD7P8+gsMiZgJlBEKufB+06EqYWjJNMCXuwYnWftuL0wgzir8xPz4eR7zSs6chXJ4pDdMj/HXNnEovicDYzWcHgtJr8IKseo/EMdC1ACgd+ntUtQ0bPcfkCDOgTZ2HF8B+2BL5KB0= 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 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 1681300963275875.2959831455353; Wed, 12 Apr 2023 05:02:43 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [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-323-ieKiPo74MI-t1BdGR8oAIQ-1; Wed, 12 Apr 2023 08:02:38 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F03F63C0F1A5; Wed, 12 Apr 2023 12:02:35 +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 D88FC14171B6; Wed, 12 Apr 2023 12:02:35 +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 CCE701946595; Wed, 12 Apr 2023 12:02:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id ADFF81946586 for ; Mon, 10 Apr 2023 05:48:24 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A277B202701E; Mon, 10 Apr 2023 05:48:24 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B5392027040 for ; Mon, 10 Apr 2023 05:48:24 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 63AA11C05148 for ; Mon, 10 Apr 2023 05:48:24 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-66-GmT1PMG-OPSiyng0CHZDiQ-1; Mon, 10 Apr 2023 01:48:22 -0400 Received: by mail-pl1-f170.google.com with SMTP id 20so5640242plk.10 for ; Sun, 09 Apr 2023 22:48:22 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id g2-20020a1709026b4200b0019719f752c5sm6839922plt.59.2023.04.09.22.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 22:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681300962; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=JX94SR7vIBdJ+qRfQ/h7KOhCo+CoUnEiHk48rhnBSTQ=; b=PBQjQJDUPhWcS0iJAW+5+fE82n0R5LTvBRscKZIm1pSN7+YaAjDK4QXuJ4cdLdqT8z1ZyM I2WsB/y9uxNMWtfV3KddilL8J169JiOndcY/JWFAIw1/QrJ8bkuedcKDibC+ERI5PhErpG 7YuZ0BwfynHl3prIpMMKhkANhlOW2/8= X-MC-Unique: ieKiPo74MI-t1BdGR8oAIQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: GmT1PMG-OPSiyng0CHZDiQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681105701; x=1683697701; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JX94SR7vIBdJ+qRfQ/h7KOhCo+CoUnEiHk48rhnBSTQ=; b=SoXSMlaciHgDhy4bQc56pLUYnpsHAhgbyjfHhElYzuHpIHGOKgdnGWbZludX2uz6Py I3kM0t533zPgMLZlOSnaA6sfWOaSHEOcPXDlYlRhaWDpGYu5UW5RDa1escwwegkE9N3L 6oT/HVhLB2GmqXKXJ5+G6PoD6qiQNBmetJUNWig1q3jmNkoJNXPU5sJsNe941onrFrpl VtZ0GZRf7urItr1k21LfJ7IVGp38LiXwQj3UkYvEl4kMYX1udsWFfrNfs74QiIPyGWcm 7wCQ+PHfYICnZiDCQPpwy5LIAf5Bc7U+MXF3COXWuGNyrIt5EcWLSj7+JkFwpr7wvutq pcdw== X-Gm-Message-State: AAQBX9eMd0JXrAZG7o+lIz8JVQho16TjTZQ+M9VkJF2pgTp3/KkYOGkR zHlLRt+o1ICY6qQRlEpdgWYR7PJo6AnOokEEtI0njA== X-Google-Smtp-Source: AKy350Y7uJTh4OtVLR3vjh3EPWPlDX4dnla06Cg6jH1Me3J9gfu06gcdAz5w8IlLsqSINZuZKpqjIQ== X-Received: by 2002:a17:902:fa0c:b0:1a5:10a3:eba4 with SMTP id la12-20020a170902fa0c00b001a510a3eba4mr5747058plb.66.1681105701276; Sun, 09 Apr 2023 22:48:21 -0700 (PDT) From: Akihiko Odaki To: Subject: [PATCH] conf: Introduce igb model for Date: Mon, 10 Apr 2023 14:48:07 +0900 Message-Id: <20230410054807.13902-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mailman-Approved-At: Wed, 12 Apr 2023 12:02:19 +0000 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: libvir-list@redhat.com, Akihiko Odaki Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: daynix.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1681300964696100001 Content-Type: text/plain; charset="utf-8"; x-default="true" igb is a new network device which will be introduced with QEMU 8.0.0. It is a successor of e1000e so it has PCIe interface and is understands virtio-net headers as e1000e does. Signed-off-by: Akihiko Odaki Reviewed-by: Michal Privoznik --- src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 1 + src/qemu/qemu_domain_address.c | 3 ++- src/qemu/qemu_interface.c | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d16a247a45..25401f742f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -587,6 +587,7 @@ VIR_ENUM_IMPL(virDomainNetModel, "virtio", "e1000", "e1000e", + "igb", "virtio-transitional", "virtio-non-transitional", "usb-net", diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 9e281692ff..44b070ba0c 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -954,6 +954,7 @@ typedef enum { VIR_DOMAIN_NET_MODEL_VIRTIO, VIR_DOMAIN_NET_MODEL_E1000, VIR_DOMAIN_NET_MODEL_E1000E, + VIR_DOMAIN_NET_MODEL_IGB, VIR_DOMAIN_NET_MODEL_VIRTIO_TRANSITIONAL, VIR_DOMAIN_NET_MODEL_VIRTIO_NON_TRANSITIONAL, VIR_DOMAIN_NET_MODEL_USB_NET, diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index b8d1969fbe..9f13f5f195 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -750,7 +750,8 @@ qemuDomainDeviceCalculatePCIConnectFlags(virDomainDevic= eDef *dev, if (net->model =3D=3D VIR_DOMAIN_NET_MODEL_VIRTIO_TRANSITIONAL) return pciFlags; =20 - if (net->model =3D=3D VIR_DOMAIN_NET_MODEL_E1000E) + if (net->model =3D=3D VIR_DOMAIN_NET_MODEL_E1000E || + net->model =3D=3D VIR_DOMAIN_NET_MODEL_IGB) return pcieFlags; =20 /* the only time model can be "unknown" is for type=3D'hostdev' diff --git a/src/qemu/qemu_interface.c b/src/qemu/qemu_interface.c index 264d5e060c..2aa4d53215 100644 --- a/src/qemu/qemu_interface.c +++ b/src/qemu/qemu_interface.c @@ -241,6 +241,7 @@ qemuInterfaceIsVnetCompatModel(const virDomainNetDef *n= et) { return (virDomainNetIsVirtioModel(net) || net->model =3D=3D VIR_DOMAIN_NET_MODEL_E1000E || + net->model =3D=3D VIR_DOMAIN_NET_MODEL_IGB || net->model =3D=3D VIR_DOMAIN_NET_MODEL_VMXNET3); } =20 --=20 2.40.0