From nobody Wed Mar 12 18:41:16 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 4ZCfbf5N1Fz5qKMk for ; Wed, 12 Mar 2025 18:41:18 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZCfbf4xdVz46w9 for ; Wed, 12 Mar 2025 18:41:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741804878; 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=K/vvM6eNirLVxX/yZgy2cvQmNX2OiGxkntEEscx6zSY=; b=q3McDTLi9szbxnjSPdvx20N1uDhNn1qQ0CLBo4YbDMbZnu9enztVSE8mSArtr3h6D7aupu 3QCq8OPBr5KQOYnIUyNBHweBtOcl+9/zvTaK98uxAtXvRsp/JxKloqbv7GnUz3CXw7kUsg F9OGXbFQwysrNtSBVJy/PFRFJaqoaxl0KV3RfWZJB/c9c8tZhH8bJZD/TKdQvJIxHqZK+n 31dmtrSx5oQbPonmRvtcylRfX6eBnu7qPd2/eCsYfVaek1FSeZLIYCPWGqKYHyMwYU7FRf 0S3c0kHP11owgPb5zGHigzbec8KWnLmEd4HtI+16N7UPx4deHIpLJ8UuUyU2ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741804878; a=rsa-sha256; cv=none; b=A+rNkk+0tOoUH5wav0rLeRkq7fo8sVPKAwN6RaUCFHXyjgXY6Dz3/2dBo47amFxx0MBn7D iG4P3PVPEE6SpSH9m/SnTKGVm+mt0HBvQZGCG6Fg86Yn2nIdSzcyeWDKgyi56Z+wN/dF2v PvTChjj0t4tzDIBa3dfUlsKNFY5fIMLxXqX3ev148NeaFGwkcJlbS5bKHjuilLELbo24d0 kTeDpi7hD+E+Er+GJKzU95KRjtgCGSS89SNKUBnt2q0toQxpwjugtWSXf1jgHHyurGQIwm 57KeCoXb55+2YVrV5QaRBiki6koRkDTiSejZyiD301+yFRaOPv/QWddGptySWA== 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=1741804878; 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=K/vvM6eNirLVxX/yZgy2cvQmNX2OiGxkntEEscx6zSY=; b=LjGbVFWME4mdsFki/AT6viUhyaMWDJkL2zEFMLBe8PUL9e6vRaiB5gUd3EogvTFhvOALSr qPwDmrBVyuzZ2yyN503k9BJZp7yjQCMC+qPqNMJwM/UASQsI4puqf8mXzpXM4KJbUageT5 xU3yc1WQBj5BXjHfCXryufRtyVSglKLR+boXoALpwihevBCOciTnuD7NBYAEHF9fFm36gU TqRt4m9amcst7uazJoLMEXZTHhYdpMlfOgkeyjrOwyv/+sLvlJz5qKTle1IzV7jEtxPIE5 1NzFn2dIHghYIuGt3M/HKodl8gCo3KHS113H5E9I3wBHfGHjFWkTJtcqgKACaQ== 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 4ZCfbf4W90z87m for ; Wed, 12 Mar 2025 18:41:18 +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 52CIfIWk021401 for ; Wed, 12 Mar 2025 18:41:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52CIfIRf021399 for virtualization@FreeBSD.org; Wed, 12 Mar 2025 18:41:18 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 203643] [bhyve] NetBSD causes bhyve to exit on AMD processors Date: Wed, 12 Mar 2025 18:41:16 +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: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mp@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: 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=3D203643 Mark Peek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mp@FreeBSD.org --- Comment #9 from Mark Peek --- Booting and installing NetBSD on an AMD Ryzen 7 7840U worked fine. Looking at the error being returned: exitcode 0x7b shows it was an IO exit exitinfo1 can be decoded from the AMD Programmers Manual Volume 2 Chapter 15.10.2 0x3f8021c shows REP OUTS to port 0x3f8 (COM1 serial port) exitinfo2 is the address of the instruction following the OUTS The IO is handled in svm_handle_io() https://github.com/freebsd/freebsd-src/blob/main/sys/amd64/vmm/amd/svm.c#L7= 85 There is a check for the SVM DecodeAssist feature here: https://github.com/freebsd/freebsd-src/blob/main/sys/amd64/vmm/amd/svm.c#L8= 08 The system information listed in this bug report do not have DecodeAssist listed. The 7840U I used shows these SVM features: SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768 By stubbing that call to decode_assist() to return 0, I was able to get the same error to occur on my hardware. Looking back in the history, the check svm_handlt_io() was put in via this commit and commit message: https://github.com/freebsd/freebsd-src/commit/bbadcde418c29fe312a1d9d39b768= 735f285efbd "Don't attempt to handle INS/OUTS VM-exits unless the DecodeAssist capabili= tyis available. The effective segment field in EXITINFO1 is not valid withoutthis capability." You could try modifying the code to not do the decode_assist() check and se= e if it works on your system. Or try turning on graphics for the VM to see if it will boot using a graphics console. --=20 You are receiving this mail because: You are the assignee for the bug.=