platform/pc: be robust on IOMMU claiming

Issue #5406
This commit is contained in:
Alexander Boettcher 2024-12-13 00:02:24 +01:00 committed by Christian Helmuth
parent 0d81a104ad
commit ae90a8a10d

View File

@ -704,9 +704,13 @@ class Intel::Io_mmu_factory : public Driver::Io_mmu_factory
device.for_each_io_mem([&] (unsigned idx, Range range, Device::Pci_bar, bool)
{
try {
if (idx == 0)
new (alloc) Intel::Io_mmu(_env, io_mmu_devices, device.name(),
range, _table_allocator, irq_number);
} catch (...) {
error("Intel::Io_mmu failed to initialize - ", device.name());
}
});
}
};