From nobody Wed Apr 9 00:48:10 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 4ZXPSW5fDnz5sDp2 for ; Wed, 09 Apr 2025 00:48:11 +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 4ZXPSW07zNz3Jgv for ; Wed, 09 Apr 2025 00:48:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744159691; 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=dD0mBCQKWT0QtI+qwFSU+U2JngbCVJX8diiAFUMKWlc=; b=HV2VTZuM6REF6H+DQJKiR4bd5v7w0ObUDYN0Nv4rY4WAnh7TuT5s8wwSv/btW/ncJZLFw2 UPn7YOR2FHjrGN1aTXKyhL2mAY15xKZK6I7VPzS+9/i+Q05ba/tjlLywZLJmDQdFUZ1jzL idQzsJ4NweDTWs626A2gRKYc1FFMs2vZEqykVM9zsS4ZYPFlguLvEPxmLhAYdb7qdTP/Ex lqSR4vWdLlvwk609iFJ+uTpQuFEzK2TzngKajw8qOuxhO9UWaz2faKW0/waLTsK4WcXo4B TES+V5ExFuDe2RFfEEi5PKNLO/qm2eLigAj7+CQ7Fv9INrYgMfzNcV8JAD0p8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744159691; a=rsa-sha256; cv=none; b=junzYWSi+Isdpb/STonyODsF5A9AkFLN2sT40R5Cq8DpMjBSEei88MovOtoCj9y0hYMsi0 C5b0y632ApDx9JgwbmCMFQZ1zZ3xtC7tzHFO+cGKxDMxrnCkzrXjMYvw/ZIGoA+BMS4uPt Aoki2As5FOZ8HQ0GwVHm1E49tcIwo0Q9pfGvaOYwnc1bbOOM5dBfRkuojiBh2Wdwu9I1/g 1A8btAiokiORLNqeyVwnH8RMS8gEHIJSV0mMFp3R4rkEWzLL+kbhaddJaaz3rbZsrs3+id KyrvSGZkfNavwkR8a6+5nxEqshLz98EP1oz82XxKQXvrtIkmEEGcn4SqQnCguQ== 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=1744159691; 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=dD0mBCQKWT0QtI+qwFSU+U2JngbCVJX8diiAFUMKWlc=; b=QYXuZTvED1ACdy4fyjkgZrVSlQqJfOkATUsiL7NEZ2fv2Ik3lRZRVcQOLAfB3/ImhXnrNu OhZns8WppY0GfuYFAbmMJe7SCJXn9u4UudKktVxppnZjVQQDmojMGFaicIVv0/QVAJciDu omnUJ/K/zPphBbtX6QGcQcdL4vrZx6jzejFLPcee2qaxHwuiV3cRZSLhF8FAwlRw3WGtcL ATZpp4KoH95F6KH7c2jcDHipaMrs/7YSO/+7quzHioIcI6tUq/JHd8tJBXjKGV1KVuSAot +sJ+2OwCwze5xGKBDyB6VmWrItn+OIKbFMZEBKRZWIF0xrMT88jwqBqjq4Zyow== 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 4ZXPSV3mLTzvdV for ; Wed, 09 Apr 2025 00:48:10 +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 5390mAsp032083 for ; Wed, 9 Apr 2025 00:48:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5390mAHn032082 for virtualization@FreeBSD.org; Wed, 9 Apr 2025 00:48:10 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, 09 Apr 2025 00:48:10 +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: kwhite.uottawa@gmail.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=3D203643 --- Comment #15 from Keith White --- No, I had not tried #10. I still wanted to see any errors and to be able to turn any workaround on/off. Thanks for the suggestion, though! I tried a modified version of #10 that provides a hw.vmm.svm.disable_decode_assist sysctl that optionally disables= the decode_assist() check. This too works for me. A long-winded way of saying "yes" #10 also works for me. diff --git a/sys/amd64/vmm/amd/svm.c b/sys/amd64/vmm/amd/svm.c index 6c16daaa47c2..63f559037687 100644 --- a/sys/amd64/vmm/amd/svm.c +++ b/sys/amd64/vmm/amd/svm.c @@ -122,6 +122,11 @@ static uint32_t nasid; SYSCTL_UINT(_hw_vmm_svm, OID_AUTO, num_asids, CTLFLAG_RDTUN, &nasid, 0, "Number of ASIDs supported by this processor"); +/* AMD A8 has no decode_assist, allow disabling the check */ +static int disable_decode_assist; +SYSCTL_INT(_hw_vmm_svm, OID_AUTO, disable_decode_assist, CTLFLAG_RWTUN, + &disable_decode_assist, 0, "Set to 1 to disable the decode_assist chec= k"); + /* Current ASID generation for each host cpu */ static struct asid asid[MAXCPU]; @@ -146,7 +151,7 @@ static __inline int decode_assist(void) { - return (svm_feature & AMD_CPUID_SVM_DECODE_ASSIST); + return ((svm_feature & AMD_CPUID_SVM_DECODE_ASSIST) || disable_decode_assist); } static void --=20 You are receiving this mail because: You are the assignee for the bug.=