2
0
Fork 0

tox: use virtio nic driver

This commit is contained in:
Ehmry - 2020-10-21 18:31:07 +02:00
parent 072fe9f6f8
commit fe639f0910
2 changed files with 20 additions and 3 deletions

View File

@ -26,7 +26,6 @@ let toArgsXML =
let tox-bootstrap =
Init::{
, verbose = True
, routes =
[ ServiceRoute.parent "Timer"
, ServiceRoute.child "Platform" "platform_drv"
@ -72,7 +71,7 @@ let tox-bootstrap =
, nic_drv =
Child.flat
Child.Attributes::{
, binary = "ipxe_nic_drv"
, binary = "virtio_pci_nic"
, provides = [ "Nic" ]
, resources = Init.Resources::{
, caps = 128
@ -124,9 +123,26 @@ let tox-bootstrap =
}
]
}
, Init.Config.Policy::{
, label = Init.LabelSelector.prefix "test-pci"
, content =
[ XML.leaf
{ name = "pci"
, attributes = toMap { class = "ALL" }
}
]
}
]
}
}
, test-pci =
Child.flat
Child.Attributes::{
, binary = "test-pci"
, reportRoms = [ label "acpi" ]
, config = Init.Config::{ attributes = toMap { rom = "acpi" } }
, routes = [ ServiceRoute.child "Platform" "platform_drv" ]
}
}
}

View File

@ -12,8 +12,9 @@
platform_drv
posix
report_rom
rom_logger
(genodeSources.make "test/pci")
vfs_lwip
virtdev_rom
virtio_nic_drv
]) ++ (with legacyPackages; [ libtoxcore ]);
};