Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4428604rwe; Mon, 17 Apr 2023 12:30:24 -0700 (PDT) X-Google-Smtp-Source: AKy350au7GaSVGi0wKj78LdS3N3LQRe5ow7/a8Hlcu25b3JxA1iOfUS3AoVd8vIKSQzv2v2DF4xe X-Received: by 2002:a17:90b:c15:b0:246:85ec:d816 with SMTP id bp21-20020a17090b0c1500b0024685ecd816mr16057978pjb.3.1681759824396; Mon, 17 Apr 2023 12:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681759824; cv=none; d=google.com; s=arc-20160816; b=L7chrFY2OChQvEsGRtLpB78yJf2l0qlaJYV4XjlOl823kkKObAAySvlDGjgfTsIGmO 5IE8nHyozzdIDoNli5UmT1xIDtxD1VvuRPfi8OkbLWAThE4S6zAO1G7jOpKmEMB3gADx rJjWyK42HiigqlHM1tsyJDsU4yvNm5KMtjuZgLAFryOorO0gecJNj4YioDcEbAIVwfIg z3MSLoqgv9ydavvDdUAI+EZUGEEF54A7Ksyebih0DlOVFD2o8RNzZV8bKgHnXT1nA3aH uOKfSm3ykt2n8ALs0U4Zfj9MqhhZv+cQz1IZeqnap3kNTqkH9A6vV4pKeEkq103TzGnu iWnA== 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; bh=8W0xUzGv3bFlwwmNaUOnlow2Y+E2WT5THpDh/RmBiBg=; b=oJ1uSUVzwF8tWsONrE/sJXrDBRKnlTL+wN6v4RVb0kZhz32m3FMfgw6YyBn+HuPgwA KsOiJU+SkWvHByhv8KOenOFnaCfMuWuHMM9Qv7wanvX1WQ0a2bVSKXwch+Pv2Z1JxF83 jkcn5K2cy9nCZuXp3UrgDFpQf7he1pKzs9xc7K1kQMS4bUwbCtDZthq8Gjgr25Tb/KvC Ik/C0WZkLar+cKkMGdon363PJEsEg4Kl4yjKgljU9xj7tNQR5ELmzJZQ6jJvamrkvp+a 03K7rYWQ+vVlxyT3JMPiTFzQ818IbQS3RZ/Q+6WzIp31D5r+CHbk70+B7QHI8ECWQO84 5iGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 il7-20020a17090b164700b00240a96d8b44si13407196pjb.103.2023.04.17.12.30.10; Mon, 17 Apr 2023 12:30:24 -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; 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 S229542AbjDQT2R (ORCPT + 99 others); Mon, 17 Apr 2023 15:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbjDQT2P (ORCPT ); Mon, 17 Apr 2023 15:28:15 -0400 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15DD76A63; Mon, 17 Apr 2023 12:28:08 -0700 (PDT) Received: by mail-wm1-f51.google.com with SMTP id l31-20020a05600c1d1f00b003f1718d89b2so2616159wms.0; Mon, 17 Apr 2023 12:28:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681759686; x=1684351686; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8W0xUzGv3bFlwwmNaUOnlow2Y+E2WT5THpDh/RmBiBg=; b=fTGgDwmIlzc0u5fgo1RpLaLwBK1t0e9PuUnfyIVBoGkCf629E4DomarncEznaNlGI8 BENW+YYLHnxQHkBA2+nwkON1hkXSDZ+jwg3sQ1JBm+m3HBF7RQVhC0P7FDhpxRo7ucxi oMcMFUlLoqIEUucY/1zQdbVBtqYoSq2pkQkLvrWYqoTOenHocA5psK1HqAD+E858G/RQ t7qJ9gz+AHpKuMCs9c5Qmgt9ceA1bTNo9qEhvYVsd/6ccdVJcALM+XmBqkycjkFNMnKQ atQ3Cn+Wuf+RMQCyKlO/57nS0y6yUvO/+Ur0S+fBZ0iVRMPrmftbNuD+2Obs0MBaRtJW YhTA== X-Gm-Message-State: AAQBX9f3bqwIupwT5jlA4qjQeFmHCajAcjr4kQAO25sVFMDSopzEjTkX 65Yw+VYrEvby9ES2CFbhdJ8= X-Received: by 2002:a05:600c:2244:b0:3f0:7e63:e034 with SMTP id a4-20020a05600c224400b003f07e63e034mr11570091wmm.29.1681759686577; Mon, 17 Apr 2023 12:28:06 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id u10-20020a7bc04a000000b003f09d7b6e20sm12792462wmc.2.2023.04.17.12.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 12:28:06 -0700 (PDT) Date: Mon, 17 Apr 2023 19:28:04 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: "longli@linuxonhyperv.com" , KY Srinivasan , Haiyang Zhang , Wei Liu , Dexuan Cui , Arnd Bergmann , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , Long Li Subject: Re: [PATCH v2] Drivers: hv: move panic report code from vmbus to hv early init code Message-ID: References: <1681435612-19282-1-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Sat, Apr 15, 2023 at 06:16:11PM +0000, Michael Kelley (LINUX) wrote: > From: longli@linuxonhyperv.com Sent: Thursday, April 13, 2023 6:27 PM > > > > The panic reporting code was added in commit 81b18bce48af > > ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") > > > > It was added to the vmbus driver. The panic reporting has no dependence > > on vmbus, and can be enabled at an earlier boot time when Hyper-V is > > initialized. > > > > This patch moves the panic reporting code out of vmbus. There is no > > functionality changes. During moving, also refactored some cleanup > > functions into hv_kmsg_dump_unregister(), and removed unused function > > hv_alloc_hyperv_page(). > > > > Signed-off-by: Long Li > > --- > > > > Change log v2: > > 1. Check on hv_is_isolation_supported() before reporting crash dump > > 2. Remove hyperv_report_reg(), inline the check condition instead > > 3. Remove the test NULL on hv_panic_page when freeing it > > > > drivers/hv/hv.c | 36 ------ > > drivers/hv/hv_common.c | 229 +++++++++++++++++++++++++++++++++ > > drivers/hv/vmbus_drv.c | 199 ---------------------------- > > include/asm-generic/mshyperv.h | 1 - > > 4 files changed, 229 insertions(+), 236 deletions(-) > > Reviewed-by: Michael Kelley Applied to hyperv-next. Thanks.