mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
os: add VirtIO nic driver
The driver is faily simple and does not support fancy features like TCP checksum offloading or vlan filtering, but it is fully capable of running every Genode network based scenario I've tried. Its currently known to work on virt_qemu arm platforms and x86_64. Fix #3825
This commit is contained in:
committed by
Christian Helmuth
parent
7fbb245710
commit
8d5005e03a
@@ -487,7 +487,7 @@ proc drivers_nic_pkg { } {
|
||||
if {[have_spec imx6q_sabrelite]} { return drivers_nic-imx6q_sabrelite }
|
||||
if {[have_spec imx7d_sabre]} { return drivers_nic-imx7d_sabre }
|
||||
if {[have_spec imx8q_evk]} { return drivers_nic-imx8q_evk }
|
||||
|
||||
if {[have_spec virt_qemu]} { return drivers_nic-virt_qemu }
|
||||
|
||||
puts stderr "drivers_nic package undefined for this build configuration"
|
||||
exit 1
|
||||
|
||||
@@ -29,7 +29,12 @@ proc append_qemu_nic_args { { extra_netdev_args "" } } {
|
||||
append qemu_args ",$extra_netdev_args"
|
||||
}
|
||||
|
||||
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
|
||||
if {[have_spec virt_qemu]} {
|
||||
append qemu_args " -global virtio-mmio.force-legacy=false "
|
||||
append qemu_args " -device virtio-net-device,bus=virtio-mmio-bus.0,netdev=net0 "
|
||||
} else {
|
||||
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user