From nobody Wed Apr 10 13:58:55 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 4VF4Dv42fVz5H9Fn for ; Wed, 10 Apr 2024 13:58:55 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VF4Dv1Dmhz4cl2 for ; Wed, 10 Apr 2024 13:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712757535; a=rsa-sha256; cv=none; b=BAsuYzF91JbKbNYky3JY8GO1fCF2VWSf3VvTT/IexDxqBT6WGD6pjp827g5mFP3rojywB0 nVRytw9iqLGdtmqw63dn7UdH0JW9+10TTRHfw5WWPfTw9+jA23eBEM3bQxJ0e2mGwQjUms uHYAjrk4/YV5m3zMYgL6KdzDIzOcodBBXVaaDsjmIDIln6CDlKWBCcgW56umLweoxv3idh s9NB60MDjMXE7W8Ejva5iIF0BfaYJ3hRffg9ILUb6WzxTqBTYq7wjx39qohypBecMQHCx4 I9Mt/t1mwaVtRiS/m8fDYsDG2qRf9WhzTEPuUDj9PtlVYYpBtJodyQpvdfaAug== 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=1712757535; 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=ajOHN1lPVHoLFvvGva6jmi6sUlqNNtwU7i7tYAbJS4k=; b=oNLiF62uoLOGfbnYykv8wOMIqjWsZeE6RtC6s5afRZsiBHxKKxJz+5WzkFkGpvFdQ1U/uh n3iOQWphpV/hG2DkKVi2p+WN3vW23h/x8K6/eguyoudH1PEdqjV4x+nUkCPT7+GGISZ/p0 5i737pBAIbuz8LHxzhyrN7xrx8/4PI1578IcTa1WrGNKmdzfPkSSs71cFAtl/kDLiPzfI6 i8uBETZLuGomCeOomtLsY+r7APfvPRQKeb6O+p6hPn8dvEEsW1NHLLHphZa7XDB1ItrHA4 IU0PcxfdJBi5Lu6MS+B8i9T0OfCOQM54rM0WYJEsMykGw9edPhB6AsF6S8B6Tg== 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 4VF4Dv0g0gzgZy for ; Wed, 10 Apr 2024 13:58: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 43ADwsmV029037 for ; Wed, 10 Apr 2024 13:58:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43ADws1P029036 for virtualization@FreeBSD.org; Wed, 10 Apr 2024 13:58:54 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 277559] kldload vmm sometimes hangs kernel on arm64 Date: Wed, 10 Apr 2024 13:58:55 +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: 15.0-CURRENT X-Bugzilla-Keywords: crash 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: cc bug_status 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: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277559 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org Status|New |Open --- Comment #4 from Mark Johnston --- vmmops_modinit() is using smp_rendezvous to execute code (arm_setup_vectors= ()) on each CPU. Presumably one or more of the CPUs is hanging in the vmm_call_hyp() call which initializes per-CPU state (various control regist= ers) in EL2. This is done in handle_hyp_init in vmm_hyp_exception.S. The first thing that routine does is initialize the vector table; I wonder = if that should be done last instead. Perhaps there is a stray EL2 exception occurring for some reason? It would be useful to add printf("%d", curcpu)s around the vmm_call_hyp() c= alls in arm_setup_vectors() to see if there is a pattern to the hangs. We can a= lso try modifying vmm_call_hyp() to return early after various points, so as to= try and narrow down exactly where the hang is happening. --=20 You are receiving this mail because: You are the assignee for the bug.=