Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp584075rwb; Wed, 7 Dec 2022 02:24:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf70hlZZXMi4OhhINSVn2GcAff9rXfnxQ/xC97MhFDwEMy3HO6qxaMk9F08bTPvXe7KfSWgk X-Received: by 2002:a05:6a00:1a14:b0:557:ef5e:6db3 with SMTP id g20-20020a056a001a1400b00557ef5e6db3mr77142262pfv.13.1670408656087; Wed, 07 Dec 2022 02:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670408656; cv=none; d=google.com; s=arc-20160816; b=ThcHGVgI8hJ6Nt2T5rVHdl0HXdkFHUPqed3MEHZU0VZx/841eQbYIjHgCYf3ZOjE+t FLl7WM8AZFobwuO2A2jy9ZTZWfKq80OAj1yWHTAbGkDR11aFRy1Bxy6C1MmTMPGTnL3b 7kgZgcrTDOwqsnR4WAFuP56aktWBXJDM0ChWg9O/Le2Yowwoq+VGDd6X04PskNOwg9An 2pWa9izlb5ig3CR0DWU3lbbbZ/54PGxLa19f5vR8enAGLhuYPXA2kZVd1Iv8YPPhyG/E h5hxN45eJQqYph8vCarpHW4xo5ZRCyj7KkOZnKCQNeZGIxYFGBdBYCTP3WJ44iySKGTI rGpQ== 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=CB+HW5SYmQa9vu11JBuiXhU2H+X9p7Qty7TqjfoWcPs=; b=kjOvOF55ORXOjse/xSAZEG3yq3cbr0fjYeiXwf6U5veVmHSz52P4tdABbMzcG/CXRc DaGAnP6Gq/d1wVJ+yPj7AvzExy1ZHtLgAIJKxIIs4XSI3tRrf33IohC4XuWnkyhHP1Wk nDij4TXj3zdm8MM2Q4/O63xv8XNz0q5F98mn6UudsJs0Z+XImV8zMdPM6QSMTHBe6W4J 0wcbhveTo0IELfvCIejB7/MNfLHMDlGLQg2+jEiyaSAf03uGWDYRmyUsUAc8+VaG6ODq 3psXUnPp1fZbit8MseOXTNbpanMdQwolrNits3pPleS27GNoEK0LSnHiIDMXWQs88hxx wAIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PxImldIW; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by10-20020a056a00400a00b00537b1bc9683si19658647pfb.36.2022.12.07.02.24.06; Wed, 07 Dec 2022 02:24:16 -0800 (PST) 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=@alien8.de header.s=dkim header.b=PxImldIW; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbiLGKQI (ORCPT + 76 others); Wed, 7 Dec 2022 05:16:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbiLGKQD (ORCPT ); Wed, 7 Dec 2022 05:16:03 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 106C4419A8 for ; Wed, 7 Dec 2022 02:15:59 -0800 (PST) Received: from zn.tnic (p200300ea9733e711329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e711:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A02B91EC0567; Wed, 7 Dec 2022 11:15:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1670408157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=CB+HW5SYmQa9vu11JBuiXhU2H+X9p7Qty7TqjfoWcPs=; b=PxImldIWMyJnFqhbaAKRANb2xx6s9rRQ8l4HDxb3iz2d1Wt40FkMULJl/bae3hOPK+4ffB Wf2qasuxj1jRTHsjQk+t+LrutUijBf+KpLG8RpPvGUTnuo6RzOD+FCzg6R6qdXqKNdE2Xs XmVgu2bJ+SSJxkfIP3Mseuq9p93UXKM= Date: Wed, 7 Dec 2022 11:15:53 +0100 From: Borislav Petkov To: Eric DeVolder Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com Subject: Re: [PATCH v14 3/7] crash: add generic infrastructure for crash hotplug support Message-ID: References: <20221116214643.6384-1-eric.devolder@oracle.com> <20221116214643.6384-4-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221116214643.6384-4-eric.devolder@oracle.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Wed, Nov 16, 2022 at 04:46:39PM -0500, Eric DeVolder wrote: > +#ifndef arch_map_crash_pages > +/* > + * NOTE: The addresses and sizes passed to this routine have > + * already been fully aligned on page boundaries. There is no > + * need for massaging the address or size. > + */ > +static inline void *arch_map_crash_pages(unsigned long paddr, > + unsigned long size) > +{ > + if (size > 0) > + return kmap_local_page(pfn_to_page(paddr >> PAGE_SHIFT)); > + else > + return NULL; > +} > +#endif > + > +#ifndef arch_unmap_crash_pages > +static inline void arch_unmap_crash_pages(void *ptr) > +{ > + if (ptr) > + kunmap_local(ptr); > +} > +#endif Why is that function still here and why aren't you calling kmap_local_page() simply? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette