mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
adjust to new interface
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
795a565adf
commit
09eac47a40
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ std::shared_ptr<Device> Container::attachDevice(devices::PciDevice &pdev) {
|
|||
throw RuntimeError("Failed to load kernel driver: vfio_pci");
|
||||
|
||||
// Bind PCI card to vfio-pci driver if not already bound
|
||||
if (pdev.getDriver() != kernelDriver) {
|
||||
if ( !(pdev.driver().has_value()) || pdev.driver().value()->name() != kernelDriver) {
|
||||
log->debug("Bind PCI card to kernel driver '{}'", kernelDriver);
|
||||
pdev.attachDriver(kernelDriver);
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ std::shared_ptr<Device> Container::attachDevice(devices::PciDevice &pdev) {
|
|||
}
|
||||
|
||||
// Get IOMMU group of device
|
||||
int index = isIommuEnabled() ? pdev.getIommuGroup() : 0;
|
||||
int index = isIommuEnabled() ? pdev.iommu_group().value() : 0;
|
||||
if (index < 0) {
|
||||
ret = kernel::getCmdlineParam("intel_iommu", iommu_state,
|
||||
sizeof(iommu_state));
|
||||
|
|
Loading…
Add table
Reference in a new issue