Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp39942iog; Tue, 28 Jun 2022 15:54:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1scp84jiliNsDQzso+8kPLDJd9+GM/1wR0ZQ5DP5BIeMFM0ybctUADeyfRFpG0InqoJBBx0 X-Received: by 2002:a63:4d5:0:b0:40d:77fd:cff8 with SMTP id 204-20020a6304d5000000b0040d77fdcff8mr217650pge.361.1656456873602; Tue, 28 Jun 2022 15:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656456873; cv=none; d=google.com; s=arc-20160816; b=on31+T0ytKAkVTWRHM21pp9rcLitdqsc2VvFiYnd9illyo/bYsI6oKINDXJTAVo6b8 zUTKbIg+sYdkt6EgPZg3dPix9Mr33rMOkiVe5lYRzvkDGpDdq+f9C/iXQsJm1kdrhBn+ XSG35CUlMAZL/ZZAjffd/O4EEDnho10xTG3FHMg5vy8nktgskSDaUzVIueKdyd7x9j0g zNA6wZqyUAm6lvRycSpekjjoq6Ohb2V4CGbFcS+Ktk6nB2A6qjohmHhWlFoXqRj4ifQw Ve4JcUdrL0L00aV6E8zQO6LRvg6zNWafaINobev54Bp+GMk+KG/l+EUH82IBAm2Bi8lM GVtQ== 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=W3kLhAZGK2ncHck2YD7sSY1Nrpc3ON/goS7rYhosu+8=; b=ik99tR8cUZouIRuxUlSNeLF60TfGNHW8w8+EF8f7dfN6K3Jp+HahmGgbHqq7q6DEST gRBQGozZ01q9Q3yxHLmZK+HPR5UAOxodGJC/0mqGuHQqJWPceWXJQ2KVTo2JLx5SWwZv tBvstsv+PU32zcxmonQeun7ydRITGGDpZoLDB82pwtRC1Xf9gczGyyPy9T0k3wGIL3aI k2voyoWM1EGbeBh7GYnXIhCXYDKdJqHvvfaofVPZjqROTYVqgxpMHve+Ktd2gdDc74tw IraVfcBr6ML+EmyeuFm78/SFC0d7mVAnVmg+fB71ZIGOzLxdpE7kabL4cQTavnqPxYZD X5mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UL1SNrMw; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 32-20020a630e60000000b004113ecaadaesi6997269pgo.753.2022.06.28.15.54.18; Tue, 28 Jun 2022 15:54:33 -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=@redhat.com header.s=mimecast20190719 header.b=UL1SNrMw; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230342AbiF1WuL (ORCPT + 99 others); Tue, 28 Jun 2022 18:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiF1WuK (ORCPT ); Tue, 28 Jun 2022 18:50:10 -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 ESMTP id 4DE3139833 for ; Tue, 28 Jun 2022 15:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656456608; 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: in-reply-to:in-reply-to:references:references; bh=W3kLhAZGK2ncHck2YD7sSY1Nrpc3ON/goS7rYhosu+8=; b=UL1SNrMwUdd20s0cmAaG3JJ2iRMZW4q3oCJwymQxqFI0j5fBBS9VBlwy78BQ0Sl0fXBv5n cA/n+wWOjakgC2kc/8BYvqqbR+y/laS/f1SiVFMj3EEDybVJ/4Yy1OuUPGusRjxT471g8R iG/pqxJAawUAz7fOzaIw3qzBVz9LqmY= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-384-T_bPul65N5WCITLsYaO6xg-1; Tue, 28 Jun 2022 18:50:07 -0400 X-MC-Unique: T_bPul65N5WCITLsYaO6xg-1 Received: by mail-io1-f72.google.com with SMTP id x4-20020a6bd004000000b00675354ad495so4047011ioa.20 for ; Tue, 28 Jun 2022 15:50:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=W3kLhAZGK2ncHck2YD7sSY1Nrpc3ON/goS7rYhosu+8=; b=ltXI0tGmjPjFvbVR8axGPBkbYF394vc+wFf2XO3zkD8SRkUaMN8FB4v5W9/U2OQujC xONkvcHL7sPn1DZuc3BruZQs3kcqBpun1VfpBuqLeXxlN5T4lVLwue5mCZb5RpLw57H0 LY8AmLJV/FVtYZi+mQRh63/CE8R/Jtz1F7wzTLCIQzdcOT0qve/2vKsHzCVByxiXTr9I 2kHgF/DAWPihO087NM7vBg0E/OPaD4dHaCYHAmoBgXyqhI967q3lfw1ex8TDgIwZcrLa mGdkmDGcPmqWcedqWMbHJrDIc+qlHB+bijr/TKj7rvdqKbxRUH5dwyXg37TVkSeXHCtM Z0hA== X-Gm-Message-State: AJIora/ir4eykBSE2P7LQJRyIZongawkmitLBhaNg3tz5fZvd/K4TDL3 2Lx9HehKQGqgN+4ZVpbmZvD/sYAWRc7kGsTD0MXP42zNThc6SQJc/Xhf3kbytffsgaYvQidbccq pthWFC0nnGX5pvOALNtVzX58J X-Received: by 2002:a05:6e02:15c9:b0:2da:c33e:49c7 with SMTP id q9-20020a056e0215c900b002dac33e49c7mr18965ilu.26.1656456606271; Tue, 28 Jun 2022 15:50:06 -0700 (PDT) X-Received: by 2002:a05:6e02:15c9:b0:2da:c33e:49c7 with SMTP id q9-20020a056e0215c900b002dac33e49c7mr18948ilu.26.1656456606042; Tue, 28 Jun 2022 15:50:06 -0700 (PDT) Received: from xz-m1.local (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id j25-20020a02a699000000b00339c33df66bsm6537922jam.118.2022.06.28.15.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 15:50:05 -0700 (PDT) Date: Tue, 28 Jun 2022 18:50:03 -0400 From: Peter Xu To: John Hubbard Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Andrew Morton , David Hildenbrand , "Dr . David Alan Gilbert" , Andrea Arcangeli , Linux MM Mailing List , Sean Christopherson Subject: Re: [PATCH 2/4] kvm: Merge "atomic" and "write" in __gfn_to_pfn_memslot() Message-ID: References: <20220622213656.81546-1-peterx@redhat.com> <20220622213656.81546-3-peterx@redhat.com> <02831f10-3077-8836-34d0-bb853516099f@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <02831f10-3077-8836-34d0-bb853516099f@nvidia.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Tue, Jun 28, 2022 at 02:52:04PM -0700, John Hubbard wrote: > On 6/28/22 12:46, Peter Xu wrote: > > I'd try to argu with "I prefixed it with kvm_", but oh well.. yes they're a > > bit close :) > > > > > > > > Yes, "read the code", but if you can come up with a better TLA than GTP > > > here, let's consider using it. > > > > Could I ask what's TLA? Any suggestions on the abbrev, btw? > > "Three-Letter Acronym". I love "TLA" because the very fact that one has > to ask what it means, shows why using them makes it harder to communicate. :) Ha! > > As for alternatives, here I'll demonstrate that "GTP" actually is probably > better than anything else I can come up with, heh. Brainstorming: > > * GPN ("Guest pfn to pfn") > * GTPN (similar, but with a "T" for "to") > * GFNC ("guest frame number conversion") Always a challenge on the naming kongfu. :-D One good thing on using TLA in macros, flags and codes (rather than simply mention some three letters): we can easily jump to the label of any of the flags when we want to figure out what it means, and logically there'll (and should) be explanations of the abbrev in the headers if it's a good header. Example: it's even not easy to figure out what GFP is in GFP_KERNEL flag for someone not familiar with mm (when I wrote this line, I got lost!), but when that happens we do jump label and at the entry of gfp.h we'll see: * ... The GFP acronym stands for get_free_pages(), And if you see the patch I actually did something similar (in kvm_host.h): /* gfn_to_pfn (gtp) flags */ ... I'd still go for GTP, but let me know if you think any of the above is better, I can switch. Thanks, -- Peter Xu