From nobody Wed Jul 31 14:51:06 2024 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 4WYw5T2nRRz5S2F5 for ; Wed, 31 Jul 2024 14:51:09 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYw5S6Ft2z4p44 for ; Wed, 31 Jul 2024 14:51:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722437468; a=rsa-sha256; cv=none; b=NlbW8NpuIlzYDLX9l1iErB9pGS9EtdGnqpuytQugfsfphgLd0LxCUEbssKQ6XEvGLez6Hj faFuUQqsz2DoFDt+/EzYXM+V5tRvLUgYp3LQ4GLnDXVlP/0RC+SqRmG8Wm59J28rJdEGQ4 zYrQrpyS+SUHn80BKNoRUFWL1oopaqG+DPwsHQEnqI4pn10YBgtVRoW8dECP1EoquoSNeY b9W1jOUF7NiPu6KQXnoILm4BwHjqP8PqTG3k0ULTOLgd2XoRdLc+N5aUDMEEc62sdzLAj0 bKF/HeJLjKEUZM8ZfddOXiu1YZm+PGzGy15eDNyKFMMfTaIYftyCaii8EOxG9g== 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=1722437468; 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=7GhQMR3IkozmIki8J6zQcEfbx0opYG0Va0mrB9pih0M=; b=yu2f5cG0A3P6kfvt8vbRkYcSTpYwyIzuItEM36Pf3+Z4C4LuourvQ6NembO9khIsbEd4qe ggjDYxpvvY7c+l5NvbbvR9lTkA38k0QyE5Cm+5nsCeTV9N0z6pD8H8N/W1B125QB2AGsBw DelSOdokLigzp0gHMCaxTwKQjUGlOY8dzakUKihH3VRUzCKZgY6TEw7aIwS1O0E/SGMKOy HSJREw9mymuKXM3hMl+U6IwMv4qnVWmHSslIs/Y1w1X/9DMN61jpwZmgekFTGTPrg34ZHT jr4Zd51Aah/UtKiSxK7mRf4pAKlQ/MT68/mKQZLm63s2/te524gUqfOT+EJu9A== 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 4WYw5S5sywz14xM for ; Wed, 31 Jul 2024 14:51:08 +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 46VEp8CP004963 for ; Wed, 31 Jul 2024 14:51:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46VEp8tn004962 for virtualization@FreeBSD.org; Wed, 31 Jul 2024 14:51:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Date: Wed, 31 Jul 2024 14:51:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D205549 --- Comment #22 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df44ff2aba2d64d1d9312cb55008dc9027= 5ccdc04 commit f44ff2aba2d64d1d9312cb55008dc90275ccdc04 Author: John Baldwin AuthorDate: 2024-07-31 14:50:33 +0000 Commit: John Baldwin CommitDate: 2024-07-31 14:50:33 +0000 bhyve: Treat the COMMAND register for PCI passthru devices as emulated Don't pass through writes of the command register through to the physical device. These registers do not need to be in sync, and in some cases (e.g. when the guest is sizing the BAR and temporarily disables decoding), the states need to diverge. PR: 205549 Reviewed by: corvink Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D46179 usr.sbin/bhyve/pci_passthru.c | 46 +++++++++++++++++++--------------------= ---- 1 file changed, 20 insertions(+), 26 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=