git: 297473069610 - main - bhyve IOMMU_REMOVE_DEVICE(): ignore iommu absence for sake of ppt_attach()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Apr 2025 03:25:56 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=29747306961017bb65324908d794b4f6bb08c1c8
commit 29747306961017bb65324908d794b4f6bb08c1c8
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-12-19 16:05:16 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-04-06 03:25:38 +0000
bhyve IOMMU_REMOVE_DEVICE(): ignore iommu absence for sake of ppt_attach()
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D49629
---
sys/amd64/vmm/io/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/vmm/io/iommu.c b/sys/amd64/vmm/io/iommu.c
index bd86ac37a83e..7167734c000b 100644
--- a/sys/amd64/vmm/io/iommu.c
+++ b/sys/amd64/vmm/io/iommu.c
@@ -129,7 +129,7 @@ IOMMU_REMOVE_DEVICE(void *domain, device_t dev, uint16_t rid)
if (ops != NULL && iommu_avail)
return ((*ops->remove_device)(domain, dev, rid));
- return (EOPNOTSUPP);
+ return (0); /* To allow ppt_attach() to succeed. */
}
static __inline int