Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 145DFC6FD1F for ; Thu, 16 Mar 2023 09:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjCPJS6 (ORCPT ); Thu, 16 Mar 2023 05:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjCPJSy (ORCPT ); Thu, 16 Mar 2023 05:18:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8BC34F58 for ; Thu, 16 Mar 2023 02:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678958278; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=prBcxf91iIZL3MAy2qfBrYESz+EF2f9sqhQG3HhwSlg=; b=Jtdmv0PldWp0ZpiNSZI7fCaLOrYHWg+PfHKXhOBkmJ83C3OcE/ASHBhjOR6apc/Yyai1PC KJDSb+VBbzEW+h9STudQyoqGZoDYs/WDZisJTmJA6NocNdgo8kzwnsrwZVM6PZIqSjzes7 bwv9ZfawVQMULnEO1yat6lEaaEYKF/4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-344-JUW4LsCMPQKF6rT0MxxqtQ-1; Thu, 16 Mar 2023 05:17:57 -0400 X-MC-Unique: JUW4LsCMPQKF6rT0MxxqtQ-1 Received: by mail-wm1-f69.google.com with SMTP id v8-20020a05600c470800b003ed3b575374so479229wmo.7 for ; Thu, 16 Mar 2023 02:17:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678958276; h=in-reply-to:content-transfer-encoding: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=prBcxf91iIZL3MAy2qfBrYESz+EF2f9sqhQG3HhwSlg=; b=4jHNf3up1du1mDp8XLUqHsQ2M3uqcxHu91sLwf0EB6BeOZhO8OyN3OdttpXkTfdXiJ c0m2bf2JZ/vEzStbwKDjPlXgwoh4g+L/iS17YQAyDAki1eIyUPDGqaBKbzyF+taJWqnn wG34MioyRtew1wbMynVUNeN2jutPouA2PeAbvEsf2IsdHdwA8JNvVw1ahZLvyUaZIOWK uje9sWq4Tx5Dwd5/aQ6K8WTFUfzqM7FWJCEzr2GQDULzw/9oEedAk+45H8NB0aLQOpxc U98j8UeR3yqp/bSPiOBaQwqIUYW8/Nb3BOODN0pYAKFy0sbQXE+5374xIxSWl+IOpx5b xQpA== X-Gm-Message-State: AO0yUKWq9DQcIzLEe6280SxxktJtFgzwci79MaCjZxue7KAPqQr/lhNK WOp/CZv0BMIMOq/6DPCsPRQ++qYZ4Qlns3Pk1SoXfPIIBRV3s1cozrvu0nRu0NwVnsXSJb6kash LZNC7Cw2NZ58GVPowRBVCMRFB X-Received: by 2002:a05:600c:5398:b0:3eb:3945:d3f1 with SMTP id hg24-20020a05600c539800b003eb3945d3f1mr21253335wmb.5.1678958276094; Thu, 16 Mar 2023 02:17:56 -0700 (PDT) X-Google-Smtp-Source: AK7set8fhHoxdUgxfHeMeJXHA71ZQrPDPTCxpB6BsggyeBHtylQKQSQtG2s7krQMIYt/khl/atW99A== X-Received: by 2002:a05:600c:5398:b0:3eb:3945:d3f1 with SMTP id hg24-20020a05600c539800b003eb3945d3f1mr21253316wmb.5.1678958275835; Thu, 16 Mar 2023 02:17:55 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-170.retail.telecomitalia.it. [82.57.51.170]) by smtp.gmail.com with ESMTPSA id k6-20020a05600c1c8600b003e209b45f6bsm4763800wms.29.2023.03.16.02.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 02:17:55 -0700 (PDT) Date: Thu, 16 Mar 2023 10:17:52 +0100 From: Stefano Garzarella To: "Fabio M. De Francesco" Cc: virtualization@lists.linux-foundation.org, Andrey Zhadchenko , eperezma@redhat.com, netdev@vger.kernel.org, stefanha@redhat.com, linux-kernel@vger.kernel.org, Jason Wang , "Michael S. Tsirkin" , kvm@vger.kernel.org Subject: Re: [PATCH v2 3/8] vringh: replace kmap_atomic() with kmap_local_page() Message-ID: <20230316091752.vskzw5trzz772s3n@sgarzare-redhat> References: <20230302113421.174582-1-sgarzare@redhat.com> <20230302113421.174582-4-sgarzare@redhat.com> <5675662.DvuYhMxLoT@suse> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5675662.DvuYhMxLoT@suse> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 16, 2023 at 10:13:39AM +0100, Fabio M. De Francesco wrote: >On gioved? 2 marzo 2023 12:34:16 CET Stefano Garzarella wrote: >> kmap_atomic() is deprecated in favor of kmap_local_page(). >> >> With kmap_local_page() the mappings are per thread, CPU local, can take >> page-faults, and can be called from any context (including interrupts). >> Furthermore, the tasks can be preempted and, when they are scheduled to >> run again, the kernel virtual addresses are restored and still valid. >> >> kmap_atomic() is implemented like a kmap_local_page() which also disables >> page-faults and preemption (the latter only for !PREEMPT_RT kernels, >> otherwise it only disables migration). >> >> The code within the mappings/un-mappings in getu16_iotlb() and >> putu16_iotlb() don't depend on the above-mentioned side effects of >> kmap_atomic(), so that mere replacements of the old API with the new one >> is all that is required (i.e., there is no need to explicitly add calls >> to pagefault_disable() and/or preempt_disable()). > >It seems that my commit message is quite clear and complete and therefore has >already been reused by others who have somehow given me credit. > >I would really appreciate it being mentioned here that you are reusing a >"boiler plate" commit message of my own making and Cc me :-) Yes of course, sorry for not doing this previously! Thanks, Stefano