From nobody Tue Nov 04 14:36:44 2025 X-Original-To: riscv@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 4d19y537Mmz6G9fc for ; Tue, 04 Nov 2025 14:36:45 +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 4d19y43Stzz3F1v for ; Tue, 04 Nov 2025 14:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762267004; 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=wcgWPdaqnb19zYRv1VA5mjoyU3bJE8dxfj/veHskkHw=; b=lEZGORyG3LqCpzyl7QmOfIhUrE6P1wW1+KVdqEfPYa6ZpSQbUlveIxZU9msOeHFnmUiuba GE3XKq3bS3z4/NNoEcu2tVWdZ5bwaD5O2gw4GkrV09/UamjEX0EgNnQgGzhR2ISCoacFpr z1e6UOR5H2MzTCj3P6CVj/CQByyMwI+Hu6RRXVnxKd4Ct0EIJ/3aBKVQcZmEl08sdZ5OP4 YwGO3AN0Iqaj0Aa6mmxPMLnRZDDFjrrzJZtSLHhEvbd4eNN+8BdNSWWY8wxfHln8v8JUau l9jwj1xXmrNiACGa7HxR479j3vF6//CPABB9x1nYVMn4LknoZ63RRwc60d8pVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762267004; 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=wcgWPdaqnb19zYRv1VA5mjoyU3bJE8dxfj/veHskkHw=; b=JjYDcdnprYaySbZrFbX0U5I4AxpMIM3flz9REhz9RzAMzIWPj2EWQNRudKSPfhnz71NCLB P069fMrDtQISdoVsR1soEOd1MOfWGzDC1TUfS7ABD8Mw/X+sKDsay8BTX6RHhgnHF16a+S g0UTAK4VmCDGIWh9hHcNJxhc4JtZIaei/PFZgtFtYIGi4GIcy0MD8Reb83O8zeipEIrsHp m1sGt3edOZalTfNiI9juyZBEWAhXfvMfezkgPOc12xxCrvNdNsePZGvV8ynRiCXuJ00ah+ sfDzw3tdPYZ3J3CDe/AL3ciGoyuyRVG1YpbbZbFEyhsDQfZ4aZ7v+bscvDBTgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762267004; a=rsa-sha256; cv=none; b=GdQrCDfCXGAz1V78Naru3Fh88EePtDC8KDsHOQzkAYr1kJQZlpZYzOvYzmAfxBe8MaTDvV BjNPn1p78FCL/1S3NSZxio4fRsGgCjFVgOs0ZU5gzz0J5ZTl7GHPlpZETGN9jEWJHNyKXO ZaIm1uEGaYT4vy3WFwlgZJQyWnoF2Bdv6r3HlhTiv6thAPtwlqnKXtAYfuFe+7X0NDWKs4 5anX8KVEPdjtcAVHHoL2AF7jgjzYePDPPAmK/nA2eJSy8hdnkcHGr1r3WtJovuLQ2MTJHk 6YrTZYYJqC/EuL1m89XLmCGGv8eTDsBbbSJ2vG0POxLzhZOy14xmPDqHjK0ULg== 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 4d19y42hYvz118K for ; Tue, 04 Nov 2025 14:36:44 +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 5A4EaioW013807 for ; Tue, 4 Nov 2025 14:36:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A4EaiQJ013806 for riscv@FreeBSD.org; Tue, 4 Nov 2025 14:36:44 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: riscv@FreeBSD.org Subject: [Bug 289930] Booting FreeBSD 16-CURRENT on riscv64 with QEMU hangs indefinitely Date: Tue, 04 Nov 2025 14:36:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: crash, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: Andrew@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: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289930 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df999ffdce3813eb946f10999ccffb8275= c324469 commit f999ffdce3813eb946f10999ccffb8275c324469 Author: Mark Johnston AuthorDate: 2025-11-04 14:27:33 +0000 Commit: Mark Johnston CommitDate: 2025-11-04 14:35:31 +0000 virtio: Fix polling in virtqueue_dequeue() The access of vq->vq_ring.used->idx needs to be volatile-qualified, otherwise the compiler may optimize virtqueue_poll() into an infinite loop if there is no data available upon the first poll. Prior to commit ad17789a8569 this wasn't a problem since an external function call after each poll inhibited the optimization. PR: 289930 MFC after: 3 days Sponsored by: Klara, Inc. Fixes: ad17789a8569 ("virtio: Remove the unused poll method") sys/dev/virtio/virtqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=