Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4237134rwe; Mon, 17 Apr 2023 09:42:25 -0700 (PDT) X-Google-Smtp-Source: AKy350aEDHUaVvJx0O7E7CsWTcqNVC8T7E1acKNl8ni0X0Kk6aX4yuQ3p4lt8yI/CgTDQ4gqSJZt X-Received: by 2002:a05:6a00:130d:b0:63b:89a2:d62d with SMTP id j13-20020a056a00130d00b0063b89a2d62dmr7224599pfu.20.1681749745112; Mon, 17 Apr 2023 09:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681749745; cv=none; d=google.com; s=arc-20160816; b=WgBnsjwvKK/ju4Sb9gshNMeGfoyGiXWTRHBw1L0/6PHEGTVnc7wosKovkrCk1X5UgO NP7D8QAf6faC3atojLEIlT46wRk49UR/sGAJzxpgy4O8anVTPiMjqwI8tXbBYi1oYzC5 L1R2dywaCiA3JnLTmiJ6r5mbmZOLgyjtKur/Ec+s0rVm20Gz/vYOYFRXxf9oZ5HJ0wES 55IfXHpTN/6ma/rBu+3FyxD57m5AtV10+Yv4RVnlvYCreAvrb722y7BbBpnByyGcsvta aPLEKrbdSrMVE7muiNd6v++4Yiks5QfjI4g9KzsdlfUKoy9wMNmDummHMhEzZ99T4R3C EkAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=PobCa3arsJG8fXaXnn3PVfRcCfm9R9LgpKNeTxPDrhk=; b=Wqegu63dwTMQ1VnOqQ0hMZtrXgX9yPetcctzoahxEbU79z7GmKJ4fkMZ4wAgvjOeFN fGn0BhGp7D9C4o4dTn+2y9eh+NY2IZE8o+kyNbXTkULWv1TKw3CtaOPffib+xxAosRop sjaBfd05P0fdp7LZsS7yMdhXI2aA6NfTwRqfNzxjUH6C07q7Sw2H6AfY/u0esmZWAlSS zLULPwedD6owhUYeBMcKdLFLzyvLJzAbRu6Q8O1DOWvd8EinB/AE7qwbNZgFYicW8jTS 4XXzFDfbUREzm1bQhwlcfmUECGHUvG0EvoGigbYThMhFVrb0bHLCmcihccC7XS2IQ3WY w9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=66Hlx2HG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a631a53000000b0050be719abc9si12267281pgm.167.2023.04.17.09.42.11; Mon, 17 Apr 2023 09:42:25 -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=@google.com header.s=20221208 header.b=66Hlx2HG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbjDQQkm (ORCPT + 99 others); Mon, 17 Apr 2023 12:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjDQQkl (ORCPT ); Mon, 17 Apr 2023 12:40:41 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC7F6E8E for ; Mon, 17 Apr 2023 09:40:40 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-54feaa94819so68933827b3.2 for ; Mon, 17 Apr 2023 09:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681749639; x=1684341639; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=PobCa3arsJG8fXaXnn3PVfRcCfm9R9LgpKNeTxPDrhk=; b=66Hlx2HGGdue05sAAFGmQdUh42QnQ4aO1LdebGweI8poz/SM3LB7V7Qi8Ad369CQ4g +GQif2hH32d8wB5a0dvcpB5JmnQq9QcsYw0RcOO41DpuHQVCSFZuqnSa7v4K2KeOXMEm o9wkzA1szQPPlX4OCmrajVt3z4IL85pQ7BeyX2b554DssXixwjN/czZmOKqQM4h0a7zR AcMguzYXg4qIY+r11k/Wy6BwozRAS+05171+FECc4IMlHt2eCLNPchKJVZ4B8vbPat8h eHfN7+zTZ//8Ui1nh5L3PPi1GxVNa/PIpdIktXlqUgAis1PEdhbe3jyeGNLr2AflbqKU yJ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681749639; x=1684341639; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PobCa3arsJG8fXaXnn3PVfRcCfm9R9LgpKNeTxPDrhk=; b=Yd9aSz1XtNRoZxI3B4itbHTxe7f6m0kGBwLeKAKkJiSS28VmkKAYU/YsTkPuMnLx8P 7B60qLhBIq4PLLNLqHNGKG2IOu70oFsi8Rsbg7Uu1vXXOejB9EjdqB+wtnNHqF7FaGvL wUkazmQNIczDu012ZmtH87ofCWDr9Qv4GPpQz35c2I25Rx/CviCT4Y0Upy4VWSelUsGF IWomqtxmKfMPN+sz1Pe8CogJ4rYWwzht3QHvoRu4lla3h7ImP30dF+86RxSSzcKWUzow +U0NNHHgMCJtlmHM1bgM+CNl/PYRCHtsBEGdCNh0Gu6GhAO0VErKLH5g5XmtnbSdN61O wllg== X-Gm-Message-State: AAQBX9fJWtmYfMr4hl7W1/E8vA9GF/ysOddBAJuem65KJ/pqw/MWLLzD pJzkTQGuaKgupnW34iozjbH+k5CGv/Y= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:af22:0:b0:534:d71f:14e6 with SMTP id n34-20020a81af22000000b00534d71f14e6mr9264079ywh.9.1681749639451; Mon, 17 Apr 2023 09:40:39 -0700 (PDT) Date: Mon, 17 Apr 2023 09:40:38 -0700 In-Reply-To: <658018f9-581c-7786-795a-85227c712be0@redhat.com> Mime-Version: 1.0 References: <20221202061347.1070246-1-chao.p.peng@linux.intel.com> <658018f9-581c-7786-795a-85227c712be0@redhat.com> Message-ID: Subject: Re: Rename restrictedmem => guardedmem? (was: Re: [PATCH v10 0/9] KVM: mm: fd-based approach for supporting KVM) From: Sean Christopherson To: David Hildenbrand Cc: Chao Peng , Paolo Bonzini , Vitaly Kuznetsov , Jim Mattson , Joerg Roedel , "Maciej S . Szmigiero" , Vlastimil Babka , Vishal Annapurve , Yu Zhang , "Kirill A . Shutemov" , dhildenb@redhat.com, Quentin Perret , tabba@google.com, Michael Roth , wei.w.wang@intel.com, Mike Rapoport , Liam Merwick , Isaku Yamahata , Jarkko Sakkinen , Ackerley Tng , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Mon, Apr 17, 2023, David Hildenbrand wrote: > On 17.04.23 17:40, Sean Christopherson wrote: > > I want to start referring to the code/patches by its syscall/implementation name > > instead of "UPM", as "UPM" is (a) very KVM centric, (b) refers to the broader effort > > and not just the non-KVM code, and (c) will likely be confusing for future reviewers > > since there's nothing in the code that mentions "UPM" in any way. > > > > But typing out restrictedmem is quite tedious, and git grep shows that "rmem" is > > already used to refer to "reserved memory". > > > > Renaming the syscall to "guardedmem"... > > restrictedmem, guardedmem, ... all fairly "suboptimal" if you'd ask me ... I'm definitely open to other suggestions, but I suspect it's going to be difficult to be more precise than something like "guarded". E.g. we discussed "unmappable" at one point, but the memory can still be mapped, just not via mmap(). And it's not just about mappings, e.g. read() and its many variants are all disallowed too, despite the kernel direct map still being live (modulo SNP requirements).