tox: use virtio nic driver
This commit is contained in:
parent
1534843747
commit
3312f27035
|
@ -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" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ]);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue