Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4302032imw; Tue, 19 Jul 2022 04:11:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6NFu1USX+nR7SEU7GyueauHvKFE796RB5diQJ6rqB0mpDcuEmFZPD48hP2nKH8L+b+UtH X-Received: by 2002:aa7:df12:0:b0:43a:4991:1725 with SMTP id c18-20020aa7df12000000b0043a49911725mr43612919edy.55.1658229075836; Tue, 19 Jul 2022 04:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658229075; cv=none; d=google.com; s=arc-20160816; b=OUr7hoOUf0bHiIAPmtuQ6/83jb8m4/BaxhQNtA2Unw4tuPb3A1NZ8uWBIhCOTZoMhX jPP9XxzeiSaXsrzmNakuzbfzZoXAYksPYP7KqugQQtxcRK9mGHGnpcfpeo2Mdmq4ZWn/ nZWeJVbn68IwR95JTfo80TJ3R9sZWWc/SqOnBrZeFVQ4kl46bTYAdB7OnKQvTdbry3PI +QMh185yYTk8j+BFOIccEUX36lRdIkn0xOzEH746mk7yilFffwTssBIc8aYCg8Ks2N5k FwYYQtwekZZYgoXrkru0zyt58mlMhjfKr5L5KKmF5i+Kea1S6hjqziXeER0JHt/Ri0v2 HJqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=/prY18tfDzgdh18wni4rMBZ1NTr/JNtOMJJ9WuUD97U=; b=hvHbicHSV3U7X3M28DB6Zc6NKGoRsdJ2z/pbRaaTI50NSbYr1F5Bt/A2TVO9zXjxbm IHVP95q07vKmxmlWEKW+V3J8dMJ4VeC7wJqLSLOWt7wfA8zOLnB3bmFFCE0lc41uIB1a JwPlfGrf0hQMPv3w/D79z7nZ8ILDTTofdJ2545wiz+Qxl9mUCWP8ChlQ2RG+Ia0rFS7Z PNZ7RjKi4vvQqi0OeBbGxivHwB3hRgfplSfbW/VOxu50GS3IRyA40m3PoANXO7f2r5WY iPfvyHWQmJNcO6IMd2DIyKKGAW0QDLrbAYPLT5FmKXKPMY2nuhalaZgNlNjHysO61do4 ePgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fje14KJo; 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 b16-20020a056402351000b0043aaf85f329si5241386edd.349.2022.07.19.04.10.51; Tue, 19 Jul 2022 04:11:15 -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=fje14KJo; 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 S231491AbiGSKno (ORCPT + 99 others); Tue, 19 Jul 2022 06:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiGSKnm (ORCPT ); Tue, 19 Jul 2022 06:43:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE98B33F for ; Tue, 19 Jul 2022 03:43:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id 646B4B81AB2 for ; Tue, 19 Jul 2022 10:43:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD602C341C6; Tue, 19 Jul 2022 10:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658227417; bh=iJd6H+8fNSRJuv3eLl/eVHLOrWTWORA02tiW58EpTso=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fje14KJooK8UuF4Le+blz2qqb7gLZxwhUWCPYiMz0VjkO7XukgdkV97LDlC+S2TKK cJAppN6LXLIffITBVHWgaUk/Jj3pBGPGb4ZJaWxRX0slNJGYYCruvRO5sFuG0HD4wj rXSuISjUP4TGZ5ExzNmYyW/NXq4iFVm7Hl2/r0yyw4UpNpDVdt/R3mkcYLNAI1a11Y BI2KBINAUudc6dbQZ2tbNB1nngRs6kAnZkfVQU98x7yCGfp4XzTI6TwpEj57PS8G7V Q449jcdy3TA4h5OTSaQmdHolJDKoX8SuIjJPcuz08ALGWngurwliqo91u/3mNKsPCy 1STaWrOCUZqsg== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oDkhT-008SNC-T0; Tue, 19 Jul 2022 11:43:35 +0100 Date: Tue, 19 Jul 2022 11:43:35 +0100 Message-ID: <87h73dz8ko.wl-maz@kernel.org> From: Marc Zyngier To: Kalesh Singh Cc: mark.rutland@arm.com, broonie@kernel.org, madvenka@linux.microsoft.com, will@kernel.org, qperret@google.com, tabba@google.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, andreyknvl@gmail.com, russell.king@oracle.com, vincenzo.frascino@arm.com, mhiramat@kernel.org, ast@kernel.org, drjones@redhat.com, wangkefeng.wang@huawei.com, elver@google.com, keirf@google.com, yuzenghui@huawei.com, ardb@kernel.org, oupton@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, android-mm@google.com, kernel-team@android.com Subject: Re: [PATCH v4 00/18] KVM nVHE Hypervisor stack unwinder In-Reply-To: <20220715061027.1612149-1-kaleshsingh@google.com> References: <20220715061027.1612149-1-kaleshsingh@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kaleshsingh@google.com, mark.rutland@arm.com, broonie@kernel.org, madvenka@linux.microsoft.com, will@kernel.org, qperret@google.com, tabba@google.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, andreyknvl@gmail.com, russell.king@oracle.com, vincenzo.frascino@arm.com, mhiramat@kernel.org, ast@kernel.org, drjones@redhat.com, wangkefeng.wang@huawei.com, elver@google.com, keirf@google.com, yuzenghui@huawei.com, ardb@kernel.org, oupton@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, android-mm@google.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.8 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 On Fri, 15 Jul 2022 07:10:09 +0100, Kalesh Singh wrote: > > Hi all, > > This is v4 of the series adding support for nVHE hypervisor stacktraces; > and is based on arm64 for-next/stacktrace. > > Thanks all for your feedback on previous revisions. Mark Brown, I > appreciate your Reviewed-by on the v3, I have dropped the tags in this > new verision since I think the series has changed quite a bit. > > The previous versions were posted at: > v3: https://lore.kernel.org/r/20220607165105.639716-1-kaleshsingh@google.com/ > v2: https://lore.kernel.org/r/20220502191222.4192768-1-kaleshsingh@google.com/ > v1: https://lore.kernel.org/r/20220427184716.1949239-1-kaleshsingh@google.com/ > > The main updates in this version are to address concerens from Marc on the > memory usage and reusing the common code by refactoring into a shared header. Overall, the series looks better. I've pointed out a few things that need changing, but my overall gripe is around the abuse the stacktrace/nvhe.h as a dumping ground. A lot of the code there could be pushed to handle_exit.c (or some other compilation unit). I've pushed an example of a 10 minutes refactor in my tree (kvm-arm64/nvhe-stacktrace), and I'm sure these are the lowest hanging fruits. Thanks, M. -- Without deviation from the norm, progress is not possible.