From nobody Thu Dec 11 08:35:53 2025 X-Original-To: virtualization@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 4dRmBg0hPqz6KbM1 for ; Thu, 11 Dec 2025 08:35:55 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dRmBf70zxz3Yjv for ; Thu, 11 Dec 2025 08:35:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765442155; 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: in-reply-to:in-reply-to:references:references; bh=EhK0pXjl7E3+6Fe9vx+ggDBwoCmRhHYYAkJbP3/eXPE=; b=miGrcmWrrDWq+NI21BJcULUa5O3EDD9t7MvaChbkDkr4SsDaGcdyWVVSGLby3TTeqMCcGq 82B8P/cPwpr+KMNoEgRt9WJW8Tg+z7UpADCy/JMOQlcUnf6YtV3u74oFRSE4+HwjkGmThy Ar3X5tKDJE80tqPDt7tQB//yG9VBKi7mzdtWwzi9eQScSJOWWd84+wIvfIz/mZF270WC84 K81zDA6upO3GajY2zun/Ej9btF+lXADvppaxb/AyxJV5RuCnMO0H7LF84Lbgl82NGTVn/l ro2S5vCld+2T5jEeMJOY/lN/p+Bkq18q13sm1oiHr24IhvNi+xSaGg+8ybdMyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765442155; 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: in-reply-to:in-reply-to:references:references; bh=EhK0pXjl7E3+6Fe9vx+ggDBwoCmRhHYYAkJbP3/eXPE=; b=ZLCReIfEq8yqxiaHi3IxGiRH37YbVOVyTMR+LqKwakmEVT85B2K3acqRXRUsXlIJ2a0td6 KGIUgqMCdsNtyMkMYhCoeteIbX97dQXMZ2kE14z/HNEmfGHXLtg2mK336MLZKiCd8G1G+q DOOnABYVSMOKRD4B12CkZUZ7uIQDEJZo8ZMArvl3DfVwib4jsCzy2wBT6UP4059Efxax7D AfOByAgLOpamOKF2ENwHKkC705rq8XtQpG2s9+G80EUzee6rg5Pc4dqYWwebA/O/JNyyZ3 ypVmK2ZonBNlL9K/OhPOMyV0n6UzCuMKePxCS88wynZ/iZle0LYJ5i+o0WMkxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765442155; a=rsa-sha256; cv=none; b=vPcHTnFo0olmdJSNL6SNKRMk/EHKGta4gwhwfKxdv6JoIXp+avPFpiqN1tuPpxWS2cSD7v 5eOvipAC8JVTKy8eAguTwyMbEUP1c9tAGbjS2UlWF8+Au/d64F6AxdhT3b7kC0QHxj0Oo9 Hf7qHrsa5w9G+HtgbxOyEuISctcSg4fNEXJULL8AqxnA/j8KPVaumbkPvvGVWJ/JtGWTdO qAKGcz1UeoNZzpbkB2Hs4ZsssqX6jYHMNiqCEmYbuTPcWcmCLfsUfHOeNb8Z7sEQe96xpW b3zBDJOB0wcbZBbDTfBhx262w49Z5wv6dv0Oh4t/nJoNyrZNyTn7z68Tvq7jEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4dRmBf6cpdz7cq for ; Thu, 11 Dec 2025 08:35:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5BB8ZsX3047625 for ; Thu, 11 Dec 2025 08:35:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BB8ZshJ047624 for virtualization@FreeBSD.org; Thu, 11 Dec 2025 08:35:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 290920] FreeBSD 15 Regression: BHyve PCI Passthrough Broken on 15-STABLE (No GSI/Interrupt Remapping Failure) Date: Thu, 11 Dec 2025 08:35:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-STABLE X-Bugzilla-Keywords: regression, uefi X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dan@sunsaturn.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290920 --- Comment #23 from dan@sunsaturn.com --- (In reply to Bojan Novkovi=C4=87 from comment #20) I appreciate you sending the patch. I tested it by first reverting my local vmmapi.c to the unpatched original, then rebuilding both libvmmapi and bhyv= e to ensure a fresh link: Test Procedure: cd /usr/src/lib/libvmmapi make clean cp vmmapi.c.old vmmapi.c # Revert to unpatched original patch -p1 -d /usr/src < /root/freebsd-usb2.patch # Apply your patch make && make install cd /usr/src/usr.sbin/bhyve make clean make && make install I have completed testing of your proposed patch for libvmmapi.c (using GPA = as offset). The testing confirms that the ordering of memory segment mapping remains the critical factor for my environment, and the proposed GPA-based offset patch introduces a new issue. TEST RESULTS SUMMARY: 1. Your Patch (GPA Offset applied): - VM Boots: Yes - Passthrough Works: No - Guest Error Observed: PCI INT A: no GSI (interrupt routing failure) 2. Original Patch (High -> Low Ordering re-applied for verification): - VM Boots: Yes - Passthrough Works: Yes (Full functionality restored for GPU and USB) CONCLUSION: The original patch that forces the High Memory segment to be mapped before = the Low Memory segment successfully resolves the passthrough issue on my updated 15.0 system. The failure of the GPA-based patch to correctly set up the PCI interrupt routing (PCI INT A: no GSI) suggests that the explicit High -> Low ordering= of the map updates is required by the VMM or IOMMU for proper initialization of passthrough devices, overriding any need for the GPA offset correction in t= his configuration. I will continue using the ordering patch for now. --=20 You are receiving this mail because: You are the assignee for the bug.=