On Wed, 2 Dec 2026 21:51:08 +0100 Maxime Coquelin <[email protected]> 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;

