From: Stephen Hemminger <stephen@networkplumber.org>
To: Maxime Coquelin <maxime.coquelin@redhat.com>
Cc: "Morten Brørup" <mb@smartsharesystems.com>,
"Chenbo Xia" <chenbox@nvidia.com>,
dev@dpdk.org, "Robin Jarry" <rjarry@redhat.com>,
"David Marchand" <david.marchand@redhat.com>
Subject: Re: [RFC] virtio: VirtualBox GSO workaround
Date: Wed, 2 Dec 2026 17:21:03 -0800 [thread overview]
Message-ID: <20261202172103.198eeb38@phoenix.local> (raw)
In-Reply-To: <CAO55cszrrDx=HsnyH1CDQUp5jBiXAX+ixAvQE4+wNnqfgjdg=g@mail.gmail.com>
On Wed, 2 Dec 2026 21:51:08 +0100
Maxime Coquelin <maxime.coquelin@redhat.com> wrote:
> By the way, it seems VirtualBox is opensource, maybe better to fix the
> issue there?
> https://github.com/VirtualBox/virtualbox/blob/main/src/VBox/Devices/Network/DevVirtioNet.cpp
AI says it is a bug fixed by:
--- a/src/VBox/Devices/Network/DevVirtioNet.cpp 2026-12-02 17:05:24.097479346 -0800
+++ b/src/VBox/Devices/Network/DevVirtioNet.cpp 2026-12-02 17:05:24.169379356 -0800
@@ -2190,6 +2190,22 @@
{
LogFunc(("[%s] (%RTmac) \n", pThis->szInst, pvBuf));
+ /*
+ * VirtIO 1.1, 5.1.6.4.1: gso_type and NEEDS_CSUM may only be used if the
+ * guest negotiated the matching GUEST_xxx feature. Otherwise fail, the
+ * driver below then segments and checksums in software.
+ */
+ bool fGuestCanRecv;
+ switch (pGso->u8Type)
+ {
+ case PDMNETWORKGSOTYPE_IPV4_TCP: fGuestCanRecv = FEATURE_ENABLED(GUEST_TSO4); break;
+ case PDMNETWORKGSOTYPE_IPV6_TCP: fGuestCanRecv = FEATURE_ENABLED(GUEST_TSO6); break;
+ case PDMNETWORKGSOTYPE_IPV4_UDP: fGuestCanRecv = FEATURE_ENABLED(GUEST_UFO); break;
+ default: fGuestCanRecv = false; break;
+ }
+ if (!fGuestCanRecv || FEATURE_DISABLED(GUEST_CSUM))
+ return VERR_NOT_SUPPORTED;
+
rxPktHdr.uFlags = VIRTIONET_HDR_F_NEEDS_CSUM;
rxPktHdr.uHdrLen = pGso->cbHdrsTotal;
rxPktHdr.uGsoSize = pGso->cbMaxSeg;
next prev parent reply other threads:[~2026-12-03 1:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 20:10 [RFC] virtio: VirtualBox GSO workaround Morten Brørup
2026-12-02 20:22 ` Stephen Hemminger
2026-12-02 20:31 ` Morten Brørup
2026-12-02 20:44 ` Maxime Coquelin
2026-12-02 20:51 ` Maxime Coquelin
2026-12-03 1:21 ` Stephen Hemminger [this message]
2026-12-03 1:30 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202172103.198eeb38@phoenix.local \
--to=stephen@networkplumber.org \
--cc=chenbox@nvidia.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=maxime.coquelin@redhat.com \
--cc=mb@smartsharesystems.com \
--cc=rjarry@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.