From nobody Sat Jul 12 06:17:24 2025 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1677149607; cv=none; d=zohomail.com; s=zohoarc; b=bro9A0gINwmeyZThV7hnAO6+KtQC/WrGWQZ2bLoo9Ct1JcNm9mWefonEploO/j2IPEeojy2Ci7/KnHH9CoMCsewtCwkKIvf2I7sHmWhzmdgX/TmdeGsnzut/Nu4Ym9bHd4QJZt5eU0mpCxXOkqVIt6NM+64jJIUfG6mm/pVxcdA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677149607; 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; bh=Hv5tCUB+3kZD3O4QWG+iy3RZzIk2yVfL+olNKinEG8g=; b=ditBElxARFu/U60TKIanA18eJOscR3rvoatV5Z3n5BK+Bgevbh+OBfu+9wiM0aLkiNvwqSMbRhl44wLNW4czDrZva0yXMUvLqxDg5EKhyViM8+7SXA4WYxWtvO1f8yG/sVyqEqDYZmjbQdIMgGEBWgc5LeJ+6nPanlKrr/F7nd4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 167714960738520.690012354759688; Thu, 23 Feb 2023 02:53:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pV9Cm-0007pj-L5; Thu, 23 Feb 2023 05:52:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pV9Cj-0007nj-Kx for qemu-devel@nongnu.org; Thu, 23 Feb 2023 05:52:02 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pV9Ch-0003hp-OE for qemu-devel@nongnu.org; Thu, 23 Feb 2023 05:52:01 -0500 Received: by mail-pj1-x102c.google.com with SMTP id pt11so13060310pjb.1 for ; Thu, 23 Feb 2023 02:51:59 -0800 (PST) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id k184-20020a6384c1000000b004fb26a80875sm4477692pgd.22.2023.02.23.02.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 02:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hv5tCUB+3kZD3O4QWG+iy3RZzIk2yVfL+olNKinEG8g=; b=gkvLfi4p+tXdJsIef8oDZ/TagcQPqm8obPnteMb+14Pjkxqr5M98U3ATKdYbTLbjR3 VJxtUBuWnax+KJ2s9t9Jcymombuk3zcT3EhXzP5v8jB2SeLWQV4u8mYUUzxF4T8Lal/J ZXdWjd3TsmttBI8jdjMPrjGIC46pZOiRMZnk0yU8b2SU92s32mafj5hTIXgHSAAv6/YW VQJQjegCA3GC9dpZci29YVWbU3AuuepUp6bMhiiNFQyZ1N+KVY8jDUXsALWt8q7UIPTN AWXY9OuGziVEpEXcsigGJEwOTvw8ATr9DS2srgKbWzZYb3NdzZ0Hauxelz/RAKB8ShIo rUsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hv5tCUB+3kZD3O4QWG+iy3RZzIk2yVfL+olNKinEG8g=; b=BE1llZXvTtF6mdO2bzzwobIo9iVHfmawrsWSbAmth7f1YODWEmr0igvX5XNpgxy84H L4hc2lY+tSzQr05NV/Ok4UhvOxwoWXgC0JtYYSq9yF/Uwj60zzNiD9rkqZNQ3knsX3M6 go+vBWytXQziMLjtw2XW+RbDKQilm5y904qndUHqHqJWnqAmVohlsGZnb1ob5j3mypjm YLxCV3dDosYs6Dym+btD8T7KUkaoIq9G6N8yEiJqTs/knQ/yPF/mDPx675A7nRUOSKi2 zaSFNKonQshdV17U+z5pnTrL0iC63f9ixZdjRGHLz1B2wajTQAOKhjuSDR+VxXyK+43E OxKQ== X-Gm-Message-State: AO0yUKXQnrnkt3bFkl+xXsNXBxJwt/yNVLhfuclHk2UTU6McALaCr9J1 45aVYb2CZjT2HF00t2O3VQyafA== X-Google-Smtp-Source: AK7set8FFrm18nldU8e4RafVo8+fojtjrUSlxugLLB0Xdnzf1ONDTk0kIZtmnPN7P3CrlK+6XrSMsg== X-Received: by 2002:a17:902:c405:b0:19a:703d:c1cb with SMTP id k5-20020a170902c40500b0019a703dc1cbmr12905612plk.11.1677149519114; Thu, 23 Feb 2023 02:51:59 -0800 (PST) From: Akihiko Odaki To: Cc: Jason Wang , Dmitry Fleytman , "Michael S . Tsirkin" , Marcel Apfelbaum , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Cleber Rosa , Laurent Vivier , Paolo Bonzini , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Darren Kenny , Qiuhao Li , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, devel@daynix.com, Yan Vugenfirer , Yuri Benditovich , Sriram Yagnaraman , Gal Hammer , Akihiko Odaki , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH v9 9/9] docs/system/devices/igb: Add igb documentation Date: Thu, 23 Feb 2023 19:50:57 +0900 Message-Id: <20230223105057.144309-10-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223105057.144309-1-akihiko.odaki@daynix.com> References: <20230223105057.144309-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::102c; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1677149609271100007 Signed-off-by: Akihiko Odaki Reviewed-by: C=C3=A9dric Le Goater --- MAINTAINERS | 1 + docs/system/device-emulation.rst | 1 + docs/system/devices/igb.rst | 71 ++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 docs/system/devices/igb.rst diff --git a/MAINTAINERS b/MAINTAINERS index 410c871cf1..ebac5fe18c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2228,6 +2228,7 @@ F: tests/qtest/libqos/e1000e.* igb M: Akihiko Odaki S: Maintained +F: docs/system/devices/igb.rst F: hw/net/igb* F: tests/avocado/igb.py F: tests/qtest/igb-test.c diff --git a/docs/system/device-emulation.rst b/docs/system/device-emulatio= n.rst index 0506006056..c1b1934e3d 100644 --- a/docs/system/device-emulation.rst +++ b/docs/system/device-emulation.rst @@ -93,3 +93,4 @@ Emulated Devices devices/virtio-pmem.rst devices/vhost-user-rng.rst devices/canokey.rst + devices/igb.rst diff --git a/docs/system/devices/igb.rst b/docs/system/devices/igb.rst new file mode 100644 index 0000000000..70edadd574 --- /dev/null +++ b/docs/system/devices/igb.rst @@ -0,0 +1,71 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later +.. _igb: + +igb +--- + +igb is a family of Intel's gigabit ethernet controllers. In QEMU, 82576 +emulation is implemented in particular. Its datasheet is available at [1]_. + +This implementation is expected to be useful to test SR-IOV networking wit= hout +requiring physical hardware. + +Limitations +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +This igb implementation was tested with Linux Test Project [2]_ and Window= s HLK +[3]_ during the initial development. The command used when testing with LT= P is: + +.. code-block:: shell + + network.sh -6mta + +Be aware that this implementation lacks many functionalities available wit= h the +actual hardware, and you may experience various failures if you try to use= it +with a different operating system other than Linux and Windows or if you t= ry +functionalities not covered by the tests. + +Using igb +=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Using igb should be nothing different from using another network device. S= ee +:ref:`pcsys_005fnetwork` in general. + +However, you may also need to perform additional steps to activate SR-IOV +feature on your guest. For Linux, refer to [4]_. + +Developing igb +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +igb is the successor of e1000e, and e1000e is the successor of e1000 in tu= rn. +As these devices are very similar, if you make a change for igb and the sa= me +change can be applied to e1000e and e1000, please do so. + +Please do not forget to run tests before submitting a change. As tests inc= luded +in QEMU is very minimal, run some application which is likely to be affect= ed by +the change to confirm it works in an integrated system. + +Testing igb +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +A qtest of the basic functionality is available. Run the below at the build +directory: + +.. code-block:: shell + + meson test qtest-x86_64/qos-test + +ethtool can test register accesses, interrupts, etc. It is automated as an +Avocado test and can be ran with the following command: + +.. code:: shell + + make check-avocado AVOCADO_TESTS=3Dtests/avocado/igb.py + +References +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +.. [1] https://www.intel.com/content/dam/www/public/us/en/documents/datash= eets/82576eb-gigabit-ethernet-controller-datasheet.pdf +.. [2] https://github.com/linux-test-project/ltp +.. [3] https://learn.microsoft.com/en-us/windows-hardware/test/hlk/ +.. [4] https://docs.kernel.org/PCI/pci-iov-howto.html --=20 2.39.1