edera-dev / krata

krata is a Xen control plane in Rust.
GNU General Public License v2.0
275 stars 11 forks source link

Load kernel modules using libkmod #317

Closed kaniini closed 2 months ago

kaniini commented 3 months ago

kmod crate which provides bindings to libkmod: https://docs.rs/kmod/latest/kmod/

We should have kratad try to load all of the xen modules at startup if they are missing and the devices they provide are missing. The modules needed are:

xenfs                  16384  1
xen_privcmd            28672  16 xenfs
xen_acpi_processor     20480  0
xen_scsiback           45056  0
xen_pciback            98304  0
xen_netback            77824  2
xen_blkback            61440  6
xen_gntalloc           20480  0
xen_gntdev             28672  4
xen_evtchn             16384  3