Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4333562imw; Thu, 7 Jul 2022 17:15:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uyEgMOj5vPi4RNJgc9c+qGRvR+5BL3hdvYSNCo5/Kl1x+EA+GfLfOpP3c8i8nxbpsu350G X-Received: by 2002:a17:906:8292:b0:723:5473:b2cf with SMTP id h18-20020a170906829200b007235473b2cfmr754571ejx.378.1657239351704; Thu, 07 Jul 2022 17:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657239351; cv=none; d=google.com; s=arc-20160816; b=HGl54CzPbpNejsUsqXRnn2eY3synkIZ7QhcVReJqX0EkgzhbafgPAgxVIb3t84IQv0 Kz1n8gbEigfHuNkvFSPwOaHfjMWWuNY/wR3ZwKaMJF6wgH3+uRVClcASAdbE7rkSL0Y0 i8BDrJ+783qADGB5i6cfL3aJrnAwiGQuihVlkjGqQkWzuA15BnUVehPbQTHf2GBZzrJi q1MgChD/cG+QHGdATuHPZ60n0dCTKTewo2lo0whclwCiDq9XAOaUHHxRrtd8iinE3Ouu FAegQ77UnCil5BDaU05xnF2kP8WiHixTSPMJ3P2xNzXPY32ymk7sBx0fhBOE3IO2dgOi XmKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lpm5T5rrAKH4mSookDRGpy+67Q9o6aKuYw1+9EoK1vQ=; b=kGd3q8cp4QaQXokBNWPYqzYpYrwIinSpKRXtvZ2K0erfar3kWV/MqYUD9vSo2yqRzo z9TnshSv/11ysUywVHhoDvlEO+la9tajGGqXCauzs7i9JS87uD3x4YSZ/nnokb1R/ksL ERySYO2ly0xekTzW9qXuuR0IClji9RS3ymTelH7D9RLh7aB+CT76KlXTnXvaD0C9nkV+ rCMbE5cLHGGa67B7yzFH4cCIzNNrNhxT6aH2Kvl7D0IRVsO8fZDIyGO6uK5osAq6/n2g h5SQd09bE/PJCDc5FTGzI0WxPZO7EHUpeHePV66s5rYLA9DUFSAs8apBQLz4aen/xhRD 1dLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KbGt49C9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020aa7d8cf000000b0043a29c3e01bsi10024684eds.118.2022.07.07.17.15.27; Thu, 07 Jul 2022 17:15:51 -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=@gmail.com header.s=20210112 header.b=KbGt49C9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236861AbiGGXkd (ORCPT + 99 others); Thu, 7 Jul 2022 19:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236588AbiGGXkb (ORCPT ); Thu, 7 Jul 2022 19:40:31 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EB8660539 for ; Thu, 7 Jul 2022 16:40:30 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so133683wmb.5 for ; Thu, 07 Jul 2022 16:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lpm5T5rrAKH4mSookDRGpy+67Q9o6aKuYw1+9EoK1vQ=; b=KbGt49C9L59Bpvx1m1Ad3LlnQbW/JZFrzQsv5EblzyBkQ9StrftKOHLk00Cgp17eWV xmFdWqHX1JAT6vJMmadhxu8XPg3UxRpveHwFJc8Di+aPaT/JEV8x84Ab2yWru7dcLsZS l4aBQwOIFMlfD9LWt3Odc6HlB478R4au3yWbekprQy4lYEWHxthrjZtKxWfxLeIGQWHJ ExAF0qTUC4tKQ1pFyi9mFFutI1lERYIjiWyduti1cVLEmjnkenWhHvNO065llo6UFw3v 222bugfioJW1PIy0wHfZ1JujYxqI07UFid569YdDRc+d73HmMFxk/NtOvKN2Zt3Ot6EO hksg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lpm5T5rrAKH4mSookDRGpy+67Q9o6aKuYw1+9EoK1vQ=; b=SPrx9ou7w+chjEcWJ3CQ9N6AwiTPEy+dO/m/mL8KlnvVa8G1m+st5+A54lnHT3zZGC Fo8fbmQQ1RoDc3SHIEOC8QvdbNJEptNNWjzRMNRJnj6aiNWB1jLLiw5dtPABSQXQWZ2T r/RBYQXcYYzm0ltANEH0+/eIbExiI9XrOl84aty0NNtLv0IuSpcHRFBX6uZbodxl9xCb ujIRc8QovzS9FrufUKwzqECdWhwpYHkCxfh/z49c0INbwUr1Io9XvpcLqyYP5Xg1h/lO hCka900+mUUdwV/Kp3sTpbf0ybFHsrWReBLKgAzoiKDZjSaeZfGAETWWXe57v5viPEnU MQzA== X-Gm-Message-State: AJIora/f6waox8Z4n/87/pgNDUGBlNHebuXmwlOy2yJm2+mT1rnCQTgm 6x+tQk5mXx78VFxeymNji/8= X-Received: by 2002:a7b:ce8a:0:b0:3a1:8ead:2ae5 with SMTP id q10-20020a7bce8a000000b003a18ead2ae5mr355455wmj.100.1657237228520; Thu, 07 Jul 2022 16:40:28 -0700 (PDT) Received: from opensuse.localnet (host-79-53-109-127.retail.telecomitalia.it. [79.53.109.127]) by smtp.gmail.com with ESMTPSA id f17-20020a05600c155100b0039c41686421sm289124wmg.17.2022.07.07.16.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 16:40:27 -0700 (PDT) From: "Fabio M. De Francesco" To: Eric Biederman , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Ira Weiny Subject: Re: [PATCH] kexec: Replace kmap() with kmap_local_page() Date: Fri, 08 Jul 2022 01:40:14 +0200 Message-ID: <4410443.LvFx2qVVIh@opensuse> In-Reply-To: <20220707184939.6086-1-fmdefrancesco@gmail.com> References: <20220707184939.6086-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 gioved=C3=AC 7 luglio 2022 20:49:39 CEST Fabio M. De Francesco wrote: > The use of kmap() and kmap_atomic() are being deprecated in favor of > kmap_local_page(). >=20 > With kmap_local_page(), the mappings are per thread, CPU local and not > globally visible. Furthermore, the mappings can be acquired from any > context (including interrupts). >=20 > Therefore, use kmap_local_page() in aio.c because these mappings are per > thread, CPU local, and not globally visible. >=20 > Tested on a QEMU + KVM 32-bits VM booting a kernel with HIGHMEM64GB > enabled. >=20 > Suggested-by: Ira Weiny > Signed-off-by: Fabio M. De Francesco > --- > kernel/kexec_core.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Please discard this version because there is a small error in the commit=20 message due to bad copy and paste. Version 2 is at=20 https://lore.kernel.org/lkml/20220707231550.1484-1-fmdefrancesco@gmail.com/ Thanks, =46abio