From nobody Thu May 22 03:26:06 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 4b2twv0HFcz5x03P for ; Thu, 22 May 2025 03:26:07 +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 4b2twt68Lcz3Hgq for ; Thu, 22 May 2025 03:26:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747884366; 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=lXtNVBsB3xOrR55S+EvspTVyMVeBm7QAfoP9tx//4Os=; b=xqRo89mR3M/zIf2OFEE6H+cASa5RVBAcO0CSpaetSHEF/XS6RqobJCXQ6zq8+8PMw9jq/H KiqdzWXCom55wOEoS9buCFxJPDBhOqEnikkUsEsEXe5QbUXNuwXzw2vrQl4548L1Ghm/Jx FnoUJZZyS79iS+LZtrfQilIk7AOwQUjcc04tqVoAjnBhfXGzX3hIreU3jM8ng/U/K+y+9+ e2uY/V0Fitw57UwPY6wTHcDr8OU0BT8V7iA6GyZzZMBGVzH4FiqA9lV7053Fyi8rpyC28W W7j47BMeYGrvcPTUrPthNhck6M2L7dm5l8m9Mkaj9QXwwiQpB7GbCmWgucGBig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747884366; 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=lXtNVBsB3xOrR55S+EvspTVyMVeBm7QAfoP9tx//4Os=; b=dSTPIOnMjmTFcovWeGniJ/S2RD/0cwFEObQ2AT3b3D/naRwh13uQ/OfX5bgHNE+1Z47LJ8 DoY8+uYhuIqSpJMxLerPHOUwEv1dZdhw3/7fC7gCfLtcSuq8IhsrlOz93sEWhyUfhY/UqU X5F4u2eVo9p8cHSKeGGWzunnWRGbq5n4+OhiATTzLKyH7lAlps/ZJz6hhew8wBcG9gNCm5 DhmG2+UTQNHSby4Z0jDdNvCbhqRZpyA32JDZEsb5COwaVnYT5J5uNs+hpNEPeAXVyc/NC0 Ly5VZkvkJtcAHURpBMswKjOBQx4Q/Seh29aygVYccKpkOeS2hyvRA95o0mLo0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747884366; a=rsa-sha256; cv=none; b=BZqO71wTBf8Vtm9UlwKV+pot2qZDW60VzNfl9p/UdFSCcuf3+Gup6NePn3WF+DHDY0xl7a +3JZ2pa/iE/6a2Yf7L/Q93nDxKLwSL7TaorueWcLzubk1ztj1Rxv74VFaKZ/wLmY6PdBgd +nUmXrs39jzRp7GhOd+U6l2Q+BVpOHcRUmC/Oe4IP087jeFKUZ+4Iqtk9E+osvHmwFMmkz GjwQDaIrXOMcMSYRD+wXeLUHDoNncVFYOUR/LLd2cp+nn4zBSPVyMERDJY0/r89kXeEdAo mCxt70TVmXLKaA35W/+Lk8CX5U3VB/qbBEbHTgalHbh8R6Ksv3jr8Llo3Ua7sA== 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 4b2twt5hvpz12vb for ; Thu, 22 May 2025 03:26:06 +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 54M3Q6Hb088919 for ; Thu, 22 May 2025 03:26:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54M3Q6Do088918 for virtualization@FreeBSD.org; Thu, 22 May 2025 03:26:06 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 286467] bhyve: Failed to emulate instruction sequence 418b0289024883c408c333c0488974 Date: Thu, 22 May 2025 03:26: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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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-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=3D286467 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D2919a487021a7785bca1c1b059413a262= 86fe620 commit 2919a487021a7785bca1c1b059413a26286fe620 Author: Konstantin Belousov AuthorDate: 2025-05-04 17:01:20 +0000 Commit: Konstantin Belousov CommitDate: 2025-05-22 03:25:30 +0000 bhyve x86: when accessing non-backed gpa, emulate hw PR: 286467 (cherry picked from commit d8c4c2ce68eec8bac4e5cd0d133b8342e7a7f05d) usr.sbin/bhyve/amd64/Makefile.inc | 2 +- usr.sbin/bhyve/amd64/mem_x86.c (new) | 82 ++++++++++++++++++++++++++++++++= ++++ 2 files changed, 83 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu May 22 03:26:08 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 4b2tww28s0z5wyk1 for ; Thu, 22 May 2025 03:26:08 +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 4b2twv6T08z3HZJ for ; Thu, 22 May 2025 03:26:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747884367; 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=wZAPtFVbrFBCk3t2M6CPyHMBFDOTa4h3rhrsCVEocWc=; b=gLj4Cx9qHd2uEzggZRNL9R3j7JnI6eR9f22i8d+3/YzM3Va8W9h0MoeT0dVl2ZvQxVEcuX ibgVkpNuR9XsXZhLkfXiGVJhmHJc6UXjc1pcdF4C95s4dFrfmIE0JvLh0FTUVIYyY40WRj PuskAi2P6z3xLiejiqSuX/s2OZYZ5xrZaVIVDNbHmY+T5cN65klgXP/WWQXcY+Ff+1yBAT 434+WJS+5wKtCN7vMfTlctnZQlzifgs0w9GCDYg/lItAIYR0fl5vCTxCjIfSKjvqGhQ7cb YbeXr8NBZxAwPpQkwYT5cImQVfw3lyeyTk9Vse3zw9hIm3yuAIVnpBs++ATxTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747884367; 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=wZAPtFVbrFBCk3t2M6CPyHMBFDOTa4h3rhrsCVEocWc=; b=WATkR3H0Y7ckPuha8PkDDWK4kJKyT7jhnlLD9QFBwi6zKX1HEy966e3VjYK9+o1LXpLmNh tijq9kLmi6kxVC3Kc3PD71DXmW74T+tqt1cgrQIiXO9KRbG5h+ckIGE5N9cSadt/MSRbQA 8A16J8L/D4GaypA07CTZlRsH2wkK7VjPSThMZ0iPFcMUvgNC2ho023MtnRxDPYoEgaslvg 7euBS+Rbp1tXJhopgNjeWV2d8Req5sZbUIadV6e7btQS+Db56WRFTY1D9qTsc4nwAudF5M F5rbqd4ubLzAqY+zSwB/Aqcl6gW4E+RN4eJhXqhRCrgpirFhydu1luVXH4c+Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747884367; a=rsa-sha256; cv=none; b=x0HtZj+RrvSx6eynYcIaCw3lIvy4gzzk6v1ieJgNioT2eIrDVdlE5tAtL2yQILVUoZI1BB ME8goltAMhZzetIxHhwNXJr2cj+fsJRnvJswN2L29Uirdi252f5i4jyts8pZfIWIECHBjH br9VRANT8aUrX8JSkFdeR7zJcduvi62EftdCK1xF4t5Z1js3kWxdFR4xbBmD87e4sbUpvE FsSSzU9Zn66ZjgEylrFW9lvTIS23jjIpHvWLCQu9F/+3+pJp37dSTGY/3ITDxbv9Y0c/OQ OwMS3H2b4WiYtO/Baw1zanUXRf0lOxhdr4y/fWw+lujsmGDzOYnxAnTVkzd5WQ== 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 4b2twv5pPqz12xD for ; Thu, 22 May 2025 03:26:07 +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 54M3Q7sd088943 for ; Thu, 22 May 2025 03:26:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54M3Q76A088942 for virtualization@FreeBSD.org; Thu, 22 May 2025 03:26:07 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 286467] bhyve: Failed to emulate instruction sequence 418b0289024883c408c333c0488974 Date: Thu, 22 May 2025 03:26:08 +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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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-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=3D286467 --- Comment #13 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3De877ef51e2b3ff351d77e50810413983e= c277785 commit e877ef51e2b3ff351d77e50810413983ec277785 Author: Konstantin Belousov AuthorDate: 2025-05-01 07:11:00 +0000 Commit: Konstantin Belousov CommitDate: 2025-05-22 03:25:30 +0000 bhyve: make code to handle non-backed memory accesses MD PR: 286467 (cherry picked from commit e8b9d839b1fae2913dc861341b9363d41cd45173) usr.sbin/bhyve/amd64/Makefile.inc | 1 + usr.sbin/bhyve/mem.c | 26 ++++++++++++++++------- usr.sbin/bhyve/mem.h | 2 ++ usr.sbin/bhyve/mem_md.c (new) | 44 +++++++++++++++++++++++++++++++++++= ++++ 4 files changed, 66 insertions(+), 7 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu May 22 03:41: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 4b2vH551Gyz5x11g for ; Thu, 22 May 2025 03:41:53 +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 4b2vH53Qqsz3QGG for ; Thu, 22 May 2025 03:41:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747885313; 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=1cOyp1wiZIa7ZFmg3zNEx0CLa1xwnhz/tJI5YT/LmNk=; b=JnzWZtzclbc5lf7wShDgAZuiSe+hwXe/oiUpBSH48nt9qBVQqq3NekySmUJ3P78006Q8Pc cw7xVnN4AHfile+XgQ24W8pF2d0FhHn/zT7IwpnkWnNMCIOkoC1z3ZjY6b6jXMCEvgRP4s X3WGhBPMxX8CHVmK/vPt+0cW8tnO8cbuK8x7WQxdSanvvHgSYwXy6cfnnl252MHdTHOz8/ qGGCjA8wmjqHg1MiHVKuxOC3yLyFIIz5P4AVq9TaVEZrgEe6UJ0GO5ml3k5ciT2VBQzxh0 cYH8C2uJdivij+N0oE60QZv4d3irk2ugpyzFi9RBjSLUyuq8S0ysaLm4EMj15g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747885313; 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=1cOyp1wiZIa7ZFmg3zNEx0CLa1xwnhz/tJI5YT/LmNk=; b=famlsgyyVkUwtrXNW4v/HYFvL9MM8JZUujHBVgJjttnQf9wIx/GQ4GogUfz2whnFZ/runF Wf8GOHYihXfqM91m8AhVUa6TB78omNyjzjtsvUlGW/AgyovTjUI0aBqyJYybPEr6xCuWF7 PSeFuggHqZxkBmi8POHYa0U9wHcWT/CIX1XoAuMc26aLOj0qTCIwiYn0GkQ4QXl9083y6D 01+AmxetO0C0zrop0nQ/t6bBy1S+xmk20sAO1OdFZeHbho4VdhS/YrW+jB9v5WX+kzbSsI qJGvoDkTuZ71HAphPvJq8K8jgIvCuMzSMl/P7sbRIR7KlsrDXhRpDRinBQYxjA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747885313; a=rsa-sha256; cv=none; b=AiRwumKFbQMyYvt3c1ZuQF9KlNDPxhuUOUKhrT35aixBEbYy3H0Vxf1e1CjX3hxunEOr7/ dDTsmvC3BoSV+iKYeoOuAxKIAejGUXnVgWfVFmhl5rT7kfLvowQXZ9Yyvh6c8dUwZR0Esf mSqe6RRP0J7nFYMhMGNDCf0nLC5qgM3QyECUeDHEdBSdzV9nAwq19m8zWd8yIvQ0+FV7VI Jp5UpNpQDvZAF9UAdFAqSxJwxZTpxp2saS7Q6ZCfHWa6qhqkY22XOnPTwEwvJfk+Nwu8CM AvtXWq5+so6i7EjcSIgR1bMrQhTJCrwBBX8x0+NbD93s2HEo5ekxgdRtTXn3Nw== 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 4b2vH52kxgz13cq for ; Thu, 22 May 2025 03:41:53 +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 54M3frsw014354 for ; Thu, 22 May 2025 03:41:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54M3frZf014353 for virtualization@FreeBSD.org; Thu, 22 May 2025 03:41:53 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 286467] bhyve: Failed to emulate instruction sequence 418b0289024883c408c333c0488974 Date: Thu, 22 May 2025 03:41:53 +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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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=3D286467 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri May 23 16:04:49 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 4b3qjs57vMz5vwgH for ; Fri, 23 May 2025 16:04:49 +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 4b3qjs4SSfz3GYg for ; Fri, 23 May 2025 16:04:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748016289; 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=jiQJGU9w7eVWZlRHfP2PEJWW8rIZhw80zwxDfYv/YUY=; b=AJLpxvn+ihclNLDcplpR54qD/ihHfprYVoatujRj9EjOMhnWQJRhEZm54kzCxRBLRgVp3n 49nkIRmoUJdjVzyvPvupOtaqpzS6PZuMUOtFqHIl7V+LVclbIiOUNuq3X6Q39zcr7QpDCN vEbE4bcpLegH30rxFhGFmB0KJ2c0/CLGocGcNNIuDK1EACxW7s0lwRlrLovVdZx9iSPf++ H2+KzvWbikPa4jBa3mNhimrUhYvdWgy50C1ExgQGC+vVzK9w36cY9pyodGbO20jy2GohMy OdmDys8XKJJ1pSkzrgSmJA27uxiFAZBMe3LFQaCno3o3hiLcTnLZQ6Kgg/F6aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748016289; 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=jiQJGU9w7eVWZlRHfP2PEJWW8rIZhw80zwxDfYv/YUY=; b=V9xpHcMZpKC/z2g/o3fJpfhF5bK1+vG26C4XQIT+hbsDQ/Snjallxdhwa1SRoUUlnlDzsM eSyEzuFFyzVPfWs3l6qYtfDNmH6xdZjrfHdVHdih0AONyTX6W1aFHXWwgVmqy/9+1y27am w7vG4NP8U7krbxfKs6FbkfyfajuVUuENKSF9wZOuCh/AQr0BlzEjk5NMN/nuyerUH0uUJQ Rn3X8B8xoE2gOJSuqE6bdIsF9Xs4zm1aOxe4cKHDmQXRq2gI+5gANIkRANa+JO9Axp5/Si FXRWttd6Zh3rHSv/WvmqvKy9s3AIc80Mdli52n2ZyXVg5BeTaodWfWIYP7PnAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748016289; a=rsa-sha256; cv=none; b=HC8GE5houst5uCpMPe4e14pi2PrKnHqRZHyRIpsoe/5IqDUSIqQ3ZFOpGNw4c1icHQxlFR +x79nwi/4NC+su+JTZbYX2HElshFLgONCtXAzAYwYrmGTSHfyw68WChxsZWOiWAkbzNgMD kAJvwl+mDDeNr/phbkXGFshBDYuWtsLmwaZrpuKy4uSRrYZoV8FHjIeNu/4ECxxYONR+45 NVk+Jo4ZY0Bdxp+HvEjXbHJ26D/4axHzVDsSJiYhQObUOmnW6dBUFx9elLreS/Iij3d66E 3AxtiAg3tYRI2JZU29/nnHGN1EwucTLuf2qGHALNRYGtNUd9BNmRTlCcZxGFaA== 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 4b3qjs3mTqz1BxR for ; Fri, 23 May 2025 16:04:49 +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 54NG4n48002879 for ; Fri, 23 May 2025 16:04:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54NG4nXc002877 for virtualization@FreeBSD.org; Fri, 23 May 2025 16:04:49 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 286893] Cold boot panic (as virtual machine under VirtualBox v7.1.6/MS Windows 10): sleeping thread holds Giant Date: Fri, 23 May 2025 16:04:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc 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=3D286893 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston --- A witness warning from the dmesg immediately before the panic: 1064 [33] Sleeping thread (tid 100180, pid 12566) owns a non-sleepable lock= =20=20=20=20=20 1065 [33] KDB: stack backtrace of thread 100180:=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1066 [33] #0 0xffffffff80b4addb at mi_switch+0xbb=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1067 [33] #1 0xffffffff80b9b766 at sleepq_catch_signals+0x2c6=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1068 [33] #2 0xffffffff80b9b489 at sleepq_wait_sig+0x9=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1069 [33] #3 0xffffffff82e4467a at rtR0SemEventMultiBsdWait+0x29a=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 1070 [33] #4 0xffffffff82e24236 at vgdrvHgcmAsyncWaitCallbackWorker+0xe6=20= =20=20=20=20=20=20=20 1071 [33] #5 0xffffffff82e260be at VbglR0HGCMInternalCall+0x82e=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 1072 [33] #6 0xffffffff82e22d45 at vgdrvIoCtl_HGCMCallWrapper+0x1b5=20=20= =20=20=20=20=20=20=20=20=20=20=20 1073 [33] #7 0xffffffff82e20b2d at VGDrvCommonProcessOptionsFromHost+0x2dd= =20=20=20=20=20=20 1074 [33] #8 0xffffffff82e24cec at vgdrvFreeBSDAttach+0x1dc=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1075 [33] #9 0xffffffff80b7a75b at device_attach+0x42b=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1076 [33] #10 0xffffffff808183f2 at pci_driver_added+0xf2=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1077 [33] #11 0xffffffff80b77d59 at devclass_driver_added+0x29=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 1078 [33] #12 0xffffffff80b77cee at devclass_add_driver+0x11e=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1079 [33] #13 0xffffffff80b18735 at module_register_init+0x85=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1080 [33] #14 0xffffffff80b09291 at linker_load_module+0xba1=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1081 [33] #15 0xffffffff80b0adc4 at kern_kldload+0x164=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1082 [33] #16 0xffffffff80b0aedc at sys_kldload+0x5c=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1083 [33] #17 0xffffffff810262be at amd64_syscall+0x10e=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1084 [33] panic: sleeping thread holds Giant=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 1085 [33] cpuid =3D 1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1086 [33] time =3D 1747525052=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 1087 [33] KDB: stack backtrace:=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 1088 [33] #0 0xffffffff80b8b88d at kdb_backtrace+0x5d=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1089 [33] #1 0xffffffff80b3dc11 at vpanic+0x131=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1090 [33] #2 0xffffffff80b3dad3 at panic+0x43=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1091 [33] #3 0xffffffff80ba42c5 at propagate_priority+0x2a5=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1092 [33] #4 0xffffffff80ba4e01 at turnstile_wait+0x301=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1093 [33] #5 0xffffffff80b19a05 at __mtx_lock_sleep+0x175=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1094 [33] #6 0xffffffff8093cd5b at usbd_enum_lock+0x5b=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1095 [33] #7 0xffffffff80946ded at uhub_explore_handle_re_enumerate+0x1d=20= =20=20=20=20=20=20=20 1096 [33] #8 0xffffffff80931cc5 at usb_bus_explore+0x65=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1097 [33] #9 0xffffffff8094db8e at usb_process+0xfe=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1098 [33] #10 0xffffffff80af760f at fork_exit+0x7f=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1099 [33] #11 0xffffffff80ffd3ee at fork_trampoline+0xe --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri May 23 16:06:55 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 4b3qmJ1fJPz5vx85 for ; Fri, 23 May 2025 16:06:56 +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 4b3qmJ0wL0z3HGW for ; Fri, 23 May 2025 16:06:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748016416; 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=unsfe2xbspJt/q5LWVeyTBMZT7bG1gTRSAF1RJsCed0=; b=mnPIbxas8LFJm64asCqNyAohjIApNcWn1ot5sler4LuMw/ttamNFs7dRaXxuGudxJZ7MKI tYzkVAQ9GgEdJ1uN2fu+lAWXGRcZD6Ww4ZQFg4TRqhrKW7aGlpJLLFy1qBDqWo/3dz4aR3 4FnVBr6nAW1h7VgzTTJBFkMwJthvIsDaT5UAvKIZH/PAOMcQMTR2cF7IATpIMHnG6WqE5M V0tPy3JqDPhGLPx6FJ43gN0KsOg8n+NuMh2wFbAKOeOZvMAACx9h6IWY0aKh/Hgec142X0 BYjR+cRHz9hUG5mJz7zWRx8SV+1nKzIZmAc+PYZu1i5JOf0uDLw6im78JRtiAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748016416; 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=unsfe2xbspJt/q5LWVeyTBMZT7bG1gTRSAF1RJsCed0=; b=VMqF2JC+yHDD/WSzRTRrdU0K7o2CQ5oes09Vc8/ZusNPakE3VdJ62uk5Az2ifEDn/gvKIM L90WqweVr5OKnUsmDcGkDBXxJmKZXFown0qBCTFt88uNXPMhsGaGe8KWiUq4YNMVO0FyMQ /wyayrIg9xlNNNS3x+B17p0Wjd+JXUKSz/nRAu0hxewIIraDz4h34wc5pgxCMOkJAQaIVD EEW4bvZg+C/ouZ5W22XdW+klimxucFpLfUHcxVqCmCixjhBsHZJr+GRxYQPKn0THEbIUmT yZxZuwCuiBSEZYBvVFJJFKQxWoAUjWp+8EkV+2ZjOpYnpj6/C2dNIUMoH+RJzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748016416; a=rsa-sha256; cv=none; b=BH6lM4AfiFxfUmiF+aELDiC/1Mqd0BcoIeD6tQz41t1hW31fv8fxJgb8HEMpZqUV8MYOPy UPoWEkWq0sUFsmaoqRH2WkXdWpv2dCu0Cfjt5ANGCfbrG4K+AQPHIWwZkPBGslrDbhLLh5 M4Tt8OOirPGmWqOfYirx5OIg32K49dgkW076A6fuAYERS/j0Mpr5heyy9om2zfPgWrKApd adQRWN1h46V53WwKpDURpqCn68lD3Gb2PP+MVSvBbqSVE7DLPJnjsY3iO3fcvryC31BoY9 blH4bf1QXgKE8kysxw7uRpO/lJqRyCEtAzf1oyNMfJ/XdtXC50FjJ5NdTXBlxg== 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 4b3qmH6rWbz1BC0 for ; Fri, 23 May 2025 16:06:55 +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 54NG6tNx004646 for ; Fri, 23 May 2025 16:06:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54NG6t4K004643 for virtualization@FreeBSD.org; Fri, 23 May 2025 16:06:55 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 286893] Cold boot panic (as virtual machine under VirtualBox v7.1.6/MS Windows 10): sleeping thread holds Giant Date: Fri, 23 May 2025 16:06:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org 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=3D286893 --- Comment #2 from Mark Johnston --- So it looks like something in virtualbox is failing to drop giant before go= ing to sleep on a sleepqueue. That is, there's probably a DROP_GIANT call miss= ing somewhere near rtR0SemEventMultiBsdWait(). --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun May 25 11:14:05 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 4b4xBj3rvhz5xRGx for ; Sun, 25 May 2025 11:15:09 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b4xBg72z4z3J1x for ; Sun, 25 May 2025 11:15:07 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=fXDirJVu; spf=pass (mx1.freebsd.org: domain of bogorodskiy@gmail.com designates 2a00:1450:4864:20::631 as permitted sender) smtp.mailfrom=bogorodskiy@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ad5a11c2942so269321166b.3 for ; Sun, 25 May 2025 04:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748171705; x=1748776505; darn=freebsd.org; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=UFzDiA73F4CU7QfqtO3RaU4xd0x3T1diPrVtt4SrNN0=; b=fXDirJVuKPgvM2O78oN7GuLhTtiOIxAro8e8JNa72Hvt70xpcp8yYXqBuFe3vCxUr8 vxiQb2EYA5lgw8COQAKqvnZxgb5bfv1OlXkKiQq3OGSOKsIdESE6GrBf+5aLNCBYwpcd tf2MyPi0ZoXkRvsajsGLM3SUh2r0+O9+Pz2o4GkNoEsSH0kDCOJeGgC+xws0IYhf1a3b c6R3o8bWI1wRmG+WcJXIPJqjcry9Qvy/qwjcaCGe8fWYWnCS14NvrSF8NFOuCRJ6X7Ek G54s3DdeyY89mi8TLy34kEwdyzV+AF1bvTd7fkOugKWCifCO+Ze6+EBks2jcCE9pXMgo J/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748171705; x=1748776505; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UFzDiA73F4CU7QfqtO3RaU4xd0x3T1diPrVtt4SrNN0=; b=E9BaYAFvotQ6h/naZ3rHBINwXwDAP46pdfQUz/jCN1LakgiTWgmu+6nSwKJDrimGha VHKUIIpNc5yXvat+mUgMGm3TYSMLEXjZ/elKroHawwOJxkHMt8ETfu0N9twLZHvayG25 wddMppZ1bf1i311cqLcfRCkYvCaj1dXhnFDcrcLMwqwGfAAogsUklm4UYBEcZC12VSVI q8XIV2f2nHSvK2IVBfsDYSKr2+GHxuaSjhDsYLUuylK2mKXuXOmIuZYIBSJxBTsG7RQS KNWAw/xQWb6Ie9Bc3H5H1+Xcn6MEK/gkM8s/87Sfsfx4JdUga4kJexaCM839NXk4Tt8W 6TZQ== X-Gm-Message-State: AOJu0YxTKV0uCsWB9wAybtRTtnKhGD+OdSYD7na9h75Z7/psj5W9p3iT Wa7sAM4J5xknzwBGfHXfTJUHOIRO0JPEouF7oAq/HjKW4ywZWkhCeqpQxPJBmsEdAkE= X-Gm-Gg: ASbGncsFVhUfCDwRfM7f1mwU6vuAqa8C2dLPTj/IifZ2iYXZYdSATpXg+QUT3Z5Td+z h7FgqRSYK1Pm9sgmg1mJRYvWdtjdtyhXJzhi247yuEUAGmzISQKUVZcSSrUaOwCg3X81T/rwN8E s00/g4qTdXB+FpCzbj3f9bJQVFMO5VEdU0I6MVjh8Rb37fLetp9ZjpplVEY683Ld91sBT7Oalrw 5wINxe0lI8V5R7RnoPuLkmloMqt5yUGPJ5HoGSOuG2LIlE5geUcSS66aHFr4SHqPq6G0smDIyg6 FJLQsRSTt0/pFL8ZdD7cty9qmFqkjtdShwsCz0EXo9K11NJbhfpsuNF/hGjrKSAprBR5/NcQwZB dfpOKiA== X-Google-Smtp-Source: AGHT+IHYytiLN/VLOrLBVmBJnkAp9ZS+weSQO70CF7gdeIpYBJ5LNBWDs6abqPLrguJhbNZSgZymJQ== X-Received: by 2002:a17:907:2d26:b0:ad4:d9c9:c758 with SMTP id a640c23a62f3a-ad85b04fe48mr467458566b.11.1748171705341; Sun, 25 May 2025 04:15:05 -0700 (PDT) Received: from tulp (80-115-115-199.cable.dynamic.v4.ziggo.nl. [80.115.115.199]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d080539sm1531907866b.66.2025.05.25.04.15.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 May 2025 04:15:04 -0700 (PDT) Date: Sun, 25 May 2025 13:14:05 +0200 From: Roman Bogorodskiy To: virtualization@freebsd.org Subject: bhyve: bootindex= not working? Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4b4xBg72z4z3J1x X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.05 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.83)[0.828]; NEURAL_SPAM_LONG(0.82)[0.817]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[novel@freebsd.org,bogorodskiy@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[novel@freebsd.org,bogorodskiy@gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; TO_DOM_EQ_FROM_DOM(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::631:from] Hi, I'm trying to understand how to use bootindex= configuration for disk devices. I start with a fresh copy of the VARs file: sudo cp /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd /data/vars/freebsd_VARS.fd Then start a VM: sudo bhyve -c 2 -m 4096 -A -I -u -H -P \ -s 0:0,hostbridge \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/data/vars/freebsd_VARS.fd,fwcfg=qemu \ -s 2:0,xhci,tablet -s 1:0,lpc \ -s 3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2 \ -s 5:0,fbuf,tcp=127.0.0.1:5920 -l com1,/dev/nmdm5A \ freebsd With this configuration I expect it to boot from the "hd" device. Instead, it boots into the installer. In the installer I see: # efibootmgr -v Boot to FW : false BootCurrent: 0001 Timeout : 0 seconds BootOrder : 0000, 0001, 0002, 0003 Boot0000* UiApp Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) +Boot0001* UEFI BHYVE SATA DVD ROM BHYVE-6057-BC56-DB6C PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x1,0xffff,0x0) Boot0002* UEFI BHYVE SATA DISK BHYVE-412B-5D46-BC34 PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x0,0xffff,0x0) Boot0003* EFI Internal Shell Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) Unreferenced Variables: # I thought maybe it doesn't pay attention to bootindex= when the VARs file is specified, so I tried like this: sudo bhyve -c 2 -m 4096 -A -I -u -H -P \ -s 0:0,hostbridge \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,fwcfg=qemu \ -s 2:0,xhci,tablet -s 1:0,lpc \ -s 3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2 \ -s 5:0,fbuf,tcp=127.0.0.1:5920 -l com1,/dev/nmdm5A \ freebsd Result is the same. Also, instead of this: -s 3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2 \ I've tried: -s 3:0,ahci-hd,/data/img/freebsd.img,bootindex=1 -s 4:0,ahci-cd,/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2 \ No difference. No, going back to the very first command I used. In the installer's shell, I execute: # efibootmgr -o 0002 Boot to FW : false BootCurrent: 0001 Timeout : 0 seconds BootOrder : 0002 Boot0002* UEFI BHYVE SATA DISK BHYVE-412B-5D46-BC34 # And reboot. It boots from the disk now, according to the configuration: root@freebsd:~ # efibootmgr -v Boot to FW : false BootCurrent: 0002 Timeout : 0 seconds BootOrder : 0002, 0000, 0001, 0003 +Boot0002* UEFI BHYVE SATA DISK BHYVE-412B-5D46-BC34 PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x0,0xffff,0x0) Boot0000* UiApp Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) Boot0001* UEFI BHYVE SATA DVD ROM BHYVE-6057-BC56-DB6C PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x1,0xffff,0x0) Boot0003* EFI Internal Shell Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) Unreferenced Variables: root@freebsd:~ # Now, if I swap the bootindex= values to force to boot from the CD, it also has no effect, from now on it'll be booting from the disk. All in all, it looks like it stores boot options in the VARS file properly, but completely ignores the bootindex command line configuration. Is it a bug somewhere or am I doing something wrong? I'm running 15.0-CURRENT ~1 month old and edk2-bhyve-g202308_5. Guest is FreeBSD 14.2-RELEASE. Thanks, Roman