[vbox-dev] [PATCH] Fix for bug #21516

Peter Palúch peter.paluch.sk at gmail.com
Sun Aug 27 14:04:48 GMT 2023


Donnie,

Perhaps this helps: The available testing builds at
https://www.virtualbox.org/wiki/Testbuilds seem to have it already. The
Windows one does for sure; I'm running it.

Best regards,
Peter

Dňa ne 27. 8. 2023, 15:50 Donnie Savage <diivious at gmail.com> napísal(a):

> I tested 7.0.10 and the issue was CSR1kv not recognizing the vertio
> interfaces remains.
>
> @Alexander can you share what version this fix will be available please.
>
> -d
>
> On Mon, Aug 14, 2023 at 12:07 PM Peter Palúch <peter.paluch.sk at gmail.com>
> wrote:
>
>> Hello Alexander,
>>
>> Many thanks for the information!
>>
>> If I may ask - can you share more details on how you fixed this issue?
>> Also, has your fix been only merged recently? 7.0.10 did not yet contain it.
>>
>> Best regards,
>> Peter
>>
>> po 14. 8. 2023 o 17:05 Alexander Eichner <alexander.eichner at oracle.com>
>> napísal(a):
>>
>>> Hi Peter,
>>>
>>> Thanks for the patch. We fixed the issue internally, albeit a bit
>>> differently.
>>>
>>> Regards,
>>> Alexander Eichner
>>>
>>> On 11.08.2023 23:36, Peter Palúch via vbox-dev <vbox-dev at virtualbox.org>
>>> wrote:
>>>
>>> Greetings,
>>>
>>> Attaching a patch fixing the bug #21516
>>> <https://www.virtualbox.org/ticket/21516> (Cisco CSR 1000v and 8000v
>>> does not recognize interfaces).
>>>
>>> It turns out that in src/VBox/Devices/Network/DevVirtioNet.cpp, the
>>> macro PCI_CLASS_BASE_NETWORK_CONTROLLER was set to 0x0200 (0x02 =PCI
>>> Network Device Class ID, 0x00 = Ethernet subclass). However, this macro is
>>> passed to another macro, PDMPciDevSetClassBase, that expects uint8_t as the
>>> PCI device class value. This has caused the virtio-net PCI adapter to be
>>> reported with the PCI class/subclass 0x0000, confusing some host operating
>>> systems.
>>>
>>> The fix is trivial - set PCI_CLASS_BASE_NETWORK_CONTROLLER to 0x02
>>> instead of 0x0200.
>>>
>>> Please consider integrating this fix at your earliest convenience.
>>>
>>> Thank you!
>>>
>>> Best regards,
>>> Peter
>>> <virtionet-21516.patch>_______________________________________________
>>> vbox-dev mailing list
>>> vbox-dev at virtualbox.org
>>> https://www.virtualbox.org/mailman/listinfo/vbox-dev
>>>
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20230827/6604efc5/attachment.html>


More information about the vbox-dev mailing list