Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2342681iob; Sat, 30 Apr 2022 06:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpGKPmoHMX0Dfyrw8QAnYJwu7fLs8rFEKBnRTg7rumZxouI5l9k0mct7FTlQBwNx7Fe+0n X-Received: by 2002:a63:2cc6:0:b0:3aa:c4e5:246e with SMTP id s189-20020a632cc6000000b003aac4e5246emr3091963pgs.548.1651324225997; Sat, 30 Apr 2022 06:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651324225; cv=none; d=google.com; s=arc-20160816; b=H2AEPf9Xh6zg5EBHnRimC0U0OkjWU59Z9y3f+1+ZTImUJhlqsH4knSU5V8XZJdZLcC CRNARhqXRptpnKNcJJi2WPTHzQv0NF5BWKac+TkMn+/JWTlZgvmqKOjgZR2aFn4/e5nc 7TuHmwYj5f0m9BQ3vIXYlArYCRJP/DTdENstZrPAwxbW2X8WABubvEV2gc7XuC41srFj x8NGKodoiaDAujOeYv7aRtJs1H2HKaKaq/6Eo9DJItcN+Z31ZNWrXmDsG4VTgU+n137f UVHF8ltghFR1gp1Hwtx05y36uiusIV44itgwi9+ZH2i1mtuD9mph3aHCqQeBB6NsehI/ uxEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zsM1koTqeXkeXkN5NY3euoTz+0E7NtiELbzjVd1dawU=; b=pVaQAIzFJzlOKUVJ8DO5TS2obM4xujL0sv6wpO8SjObnDxofO2TNZZk2F6uusnaeWV uL+XGm8TtJbRxDO4x/mZH++R4Kue9LDMylnfmvxV0bLaGi5WaDCuz3rVSFV9p5mbh0Ce NxuWe2urdI9gO7XM+RGjaLf3vRjRKxUowTsOFhlWuq+IIzrmhP7+r4BbyBLLetuQmfaw oYrRt4XNawMCPU72swEZwdX4HHYG3ga4AYPuzxvzCclhU+iust8WGr0I0ZtADH0xfuDv gAoScSThbD+hg//A7/4RTH97vhXQgJr1aaZqKQh21cTdGFj023XwKUa78KvZqZpp1Yvy n+Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pd8vtQRr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a656798000000b003ab9d95852bsi9547489pgr.260.2022.04.30.06.10.09; Sat, 30 Apr 2022 06:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pd8vtQRr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359776AbiD2N2G (ORCPT + 99 others); Fri, 29 Apr 2022 09:28:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245140AbiD2N2F (ORCPT ); Fri, 29 Apr 2022 09:28:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3C2DC867E for ; Fri, 29 Apr 2022 06:24:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 702F96226B for ; Fri, 29 Apr 2022 13:24:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F392C385A7; Fri, 29 Apr 2022 13:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651238686; bh=9+eEncYlwkaV6r7GtViKcetUKKSK0ecyfUig/hEuNnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pd8vtQRrdIPSpq1EqtjnJq0eFGUCemeJ8qRCc6/mp1U4semEJtdCm+6dxfmJgfSZE 8u7QiQi9R1yTxU0m4zWQzNZjprqJigsVkbBRrny13IoxZt/oHP8cQ3H55LiEkdZY5m LNLh9sa4jUjgqVAcIQ1pHpNwq76ytrX+aLafrTUyJhRdL7lpMAqwrdBcKd3s22xHn2 /l1M6zW3wVAhafuQwVIWzyd+pDd7ipu4LClnblpstPSt13CEIwENngNKl0mUFg9adD pMcM97FQ48W7QNV/QV5j6IbeHpKDLMuyhivJgo7g+LxfszKPs1wjSS+zUpUc/Nu8j+ 2Eg0ccvi2Z2HA== Date: Fri, 29 Apr 2022 14:24:38 +0100 From: Mark Brown To: Kalesh Singh Cc: mark.rutland@arm.com, will@kernel.org, maz@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Masami Hiramatsu , Peter Collingbourne , Alexei Starovoitov , "Madhavan T. Venkataraman" , Andrew Jones , Marco Elver , Kefeng Wang , Zenghui Yu , Keir Fraser , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] KVM: arm64: Unwind and dump nVHE hypervisor stacktrace Message-ID: References: <20220427184716.1949239-1-kaleshsingh@google.com> <20220427184716.1949239-5-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KmavymclFYg5AbyJ" Content-Disposition: inline In-Reply-To: <20220427184716.1949239-5-kaleshsingh@google.com> X-Cookie: Are you still an ALCOHOLIC? X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KmavymclFYg5AbyJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2022 at 11:46:59AM -0700, Kalesh Singh wrote: > On hyp_panic(), the hypervisor dumps the addresses for its stacktrace > entries to a page shared with the host. The host then symbolizes and > prints the hyp stacktrace before panicking itself. >=20 > Example stacktrace: >=20 > [ 122.051187] kvm [380]: Invalid host exception to nVHE hyp! > [ 122.052467] kvm [380]: nVHE HYP call trace: > [ 122.052814] kvm [380]: [] __kvm_nvhe___pkvm_vcpu_ini= t_traps+0x1f0/0x1f0 > [ 122.053865] kvm [380]: [] __kvm_nvhe_hyp_panic+0x130= /0x1c0 > [ 122.054367] kvm [380]: [] __kvm_nvhe___kvm_vcpu_run+= 0x10/0x10 > [ 122.054878] kvm [380]: [] __kvm_nvhe_handle___kvm_vc= pu_run+0x30/0x50 > [ 122.055412] kvm [380]: [] __kvm_nvhe_handle_trap+0xb= c/0x160 > [ 122.055911] kvm [380]: [] __kvm_nvhe___host_exit+0x6= 4/0x64 > [ 122.056417] kvm [380]: ---- end of nVHE HYP call trace ---- This will be really helpful! Reviewed-by: Mark Brown --KmavymclFYg5AbyJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJr5xYACgkQJNaLcl1U h9AKIwf+L8bCCODKWgL1wYrEellpME7cjpfW7uY6BxNZBEZJ6V+CuQxbHx7shY1D qc/lcT1/R3JS7INc3mLr0Nw1K5UxC3jHXujCFw0LezQtuC5243YayR1J+v20WtHu dia7rJkm6qSPMBbfkJ0IFAn2jCioXZJjeEUld6Q601dktI5CgD0P3gWdm7SoZ/SB ORt2nNPMVhH571i+HBAeVN5lkk5Y7d8XnlNkqGsnhDiMhZPkg1qrgvcFivsu9HOW ub+n9WLPOLK0PrZhttDvYnOCiUhNsFI6k3wfujbF0ulDN7GO7giLr6z9dVTq+HFg G4mI/GfeiPZigTdZ3Uz6dGuiirqvTg== =x5xf -----END PGP SIGNATURE----- --KmavymclFYg5AbyJ--