<div dir="ltr">
<div>Hello Alexander,</div><div><br></div><div>Many thanks for the information!</div><div><br></div><div>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.</div><div><br></div><div>Best regards,</div><div>Peter</div>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">po 14. 8. 2023 o 17:05 Alexander Eichner <<a href="mailto:alexander.eichner@oracle.com">alexander.eichner@oracle.com</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
Hi Peter,
<div><br>
</div>
<div>Thanks for the patch. We fixed the issue internally, albeit a bit differently.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alexander Eichner<br>
<div><br>
<blockquote type="cite">
<div>On 11.08.2023 23:36, Peter Palúch via vbox-dev <<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Greetings,</div>
<div><br>
</div>
<div>Attaching a patch fixing the bug <a href="https://www.virtualbox.org/ticket/21516" target="_blank">
#21516</a> (Cisco CSR 1000v and 8000v does not recognize interfaces).</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>The fix is trivial - set PCI_CLASS_BASE_NETWORK_CONTROLLER to 0x02 instead of 0x0200.</div>
<div><br>
</div>
<div>Please consider integrating this fix at your earliest convenience.</div>
<div><br>
</div>
<div>Thank you!</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Peter<br>
</div>
</div>
<span id="m_-5285305179716363985cid:f_ll73xeuk0"><virtionet-21516.patch></span>_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div>