The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3f3ce5ec77c8ae051fbd284342057d7f5185c0e4
commit 3f3ce5ec77c8ae051fbd284342057d7f5185c0e4 Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2025-04-09 09:46:57 +0000 Commit: Konstantin Belousov <k...@freebsd.org> CommitDate: 2025-04-09 12:20:08 +0000 bhyve amd64: allow iommu to fail attaching device to host domain If iommu does not want to handle some device, e.g. because the ACPI table does not list it as translated, this is not a reason to fail creating the host domain. PR: 285976 Sponsored by: The FreeBSD Foundation --- sys/amd64/vmm/io/iommu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/amd64/vmm/io/iommu.c b/sys/amd64/vmm/io/iommu.c index 7167734c000b..9fc612244699 100644 --- a/sys/amd64/vmm/io/iommu.c +++ b/sys/amd64/vmm/io/iommu.c @@ -237,7 +237,11 @@ iommu_init(void) */ error = iommu_add_device(host_domain, dev, pci_get_rid(dev)); - if (error != 0) { + if (error != 0 && error != ENXIO) { + printf( + "iommu_add_device(%s rid %#x) failed, error %d\n", + device_get_name(dev), + pci_get_rid(dev), error); iommu_cleanup_int(false); return; }