mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
ensure loading of vfio modules
Signed-off-by: IgnoreWarnings <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
f25e1dd689
commit
977f1efbb4
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <villas/fpga/core.hpp>
|
||||
#include <villas/fpga/node.hpp>
|
||||
#include <villas/fpga/pcie_card.hpp>
|
||||
#include <villas/kernel/kernel.hpp>
|
||||
#include <villas/kernel/pci.hpp>
|
||||
#include <villas/kernel/vfio_container.hpp>
|
||||
#include <villas/memory.hpp>
|
||||
|
@ -32,6 +33,10 @@ PCIeCardFactory::make(json_t *json_card, std::string card_name,
|
|||
const std::filesystem::path &searchPath) {
|
||||
auto logger = getStaticLogger();
|
||||
|
||||
// make sure the vfio container has the required modules
|
||||
kernel::loadModule("vfio_pcie");
|
||||
kernel::loadModule("vfio_iommu_type1");
|
||||
|
||||
json_t *json_ips = nullptr;
|
||||
json_t *json_paths = nullptr;
|
||||
const char *pci_slot = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue