From nobody Wed Apr 09 12:20:13 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZXhq15gbZz5syjQ; Wed, 09 Apr 2025 12:20:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZXhq14QGnz3nsF; Wed, 09 Apr 2025 12:20:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744201213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEBLT1T+XGW7DjUIwsHq2yhz43QXkEkr7KY8LjxukU8=; b=yZDqMxhKyKLXBdbVOGFDYHSK9FRnW2tbNokHVLLAveM7PLTo/wnZ5CMs+S8J/ybmJYG0Bm Q+jqNJr+lIXGt2pBIG6BaBnAbPfPY63VJFmwysoIoKzEukgtJ/y/TBiQlZPNyRGw+xEpJi EnTV5QFYVJb8sVonTNjov0lbuQ8Sd3wpULF5teUmyRVC8ZbjTpbNrOAnJrVRAON45pqQbT AqujX5+xwl3PIFnQLJEcPyK0o7/8lHF9oxHGGbT22zNfren+R9zagZXWOIU6h98j40oHWw Ayta/p/1wvia//t9FtKMJjJwS7fANIve5WmlusL42GFAyTzpMcSMVVuKzzgo9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744201213; a=rsa-sha256; cv=none; b=vTOyCgZpDUo3kBbvzpZ65z8i3v6CxCdvmKeM/piVGH2RQacouNcU5myNVhSFe2VpcJGxX1 2hBorPbyRc3mFYepy5CF19gj8RKgcajD+i/q1sPRtA+yXaI8ozOai6pbHSxtqSgKs6KfGw GARQ4n6dNSL0odmSfT1sZJbZJdrEZ/Htx/1iREPjqfcUCMfk/jkRbB7iiUG2FG+0zKvnMq 4O9aYW7zB9qjrz1WC3wI0RIZnCUA9Us5UqzDc/7mqkwUrOwX2AMrwUEbx+zlEKBJK3iyeS AqrUMtDwQAXlNqLIP2mUuVeg8Vq8ZNR+IpPIRxeFE8H/+8isFTSJUihk6hXyGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744201213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEBLT1T+XGW7DjUIwsHq2yhz43QXkEkr7KY8LjxukU8=; b=EyqpdDx3eLF6MWAk11KgATbI5tIcGVSe35SV7o1q2xVebgq/Oq09pIOVfaSuLIu2dADptg nAc6oZylc8JBQQIgQD6yEJDJHGtJU7oZUv6UHM6B4zIBifxSgipD6ugdUDYEQzkVxDqUQ8 q0ydmgrttCwJfgLDaTYnOvcQB0LE4du259/Pa7pjGnxieXnIJRqC9z5A0ps7ca8uSfqicr mOG7q53L2fNL0lyhlazRXWhLpagWokz+59h0jy6yIorKhPzkWduHbphXzwWBr9b5wcByWl JSVxUE2n7rZkeyEFt8bsBS0aasq8jBWJ8y8QFrjwjAHMDhvGTdxSPkKBnf/tuA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZXhq13HgQz1yh; Wed, 09 Apr 2025 12:20:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 539CKD2h068019; Wed, 9 Apr 2025 12:20:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 539CKDt3068010; Wed, 9 Apr 2025 12:20:13 GMT (envelope-from git) Date: Wed, 9 Apr 2025 12:20:13 GMT Message-Id: <202504091220.539CKDt3068010@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 3f3ce5ec77c8 - main - bhyve amd64: allow iommu to fail attaching device to host domain List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f3ce5ec77c8ae051fbd284342057d7f5185c0e4 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3f3ce5ec77c8ae051fbd284342057d7f5185c0e4 commit 3f3ce5ec77c8ae051fbd284342057d7f5185c0e4 Author: Konstantin Belousov AuthorDate: 2025-04-09 09:46:57 +0000 Commit: Konstantin Belousov 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; }