1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Automatically load required kernel modules

This commit is contained in:
Hatim Kanchwala 2019-06-10 18:47:42 -04:00 committed by Steffen Vogel
parent 9f51d1d5bb
commit 93f5ddd4f4

View file

@ -85,8 +85,8 @@ VfioContainer::VfioContainer()
};
for(const char* module : requiredKernelModules) {
if(kernel_module_loaded(module) != 0) {
logger->error("Kernel module '{}' required but not loaded. "
if(kernel_module_load(module) != 0) {
logger->error("Kernel module '{}' required but could not be loaded. "
"Please load manually!", module);
throw std::exception();
}