Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5698973rwe; Tue, 18 Apr 2023 10:09:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bb/dbW6JmzrIbuutqcc6VrH8cdFdg2S70rT5FkJyGRSUJ5tSk92P8FGarEDmFAHa7Q3DsT X-Received: by 2002:a05:6a21:6da2:b0:cc:5f8f:4f7a with SMTP id wl34-20020a056a216da200b000cc5f8f4f7amr396529pzb.27.1681837787247; Tue, 18 Apr 2023 10:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681837787; cv=none; d=google.com; s=arc-20160816; b=Hz/7zZ+Y1z+CzHajrgCTbVCb5Z/yXqCX9Ur4NVt7crhI5HwmW1Hh8fcTGeX4sCGGWe HB4ISesai4KyRk0iN7r/TtIQxkYMsj+tLFuQU1VflAcwFDEFrQ/hq8yYRfjasca2qvpg TNs5p2YflvKwLN4VtQH68GcM9JVlGOR9jqyi12NvABWQDca3vmiv6G+PM3G/biy5HATB dBERVF5aOxVezBRzbI5LvCUNSAlKQRgavWu7Tjhc44tjNEXpph1ByySnTLoRdmj1odb5 g6uM9OfUzeQ9OiOK1SKI3JwMCwkhh0T/r/8QRmIVbus9CNrv+RyMwwsf0MbufN87C4/E XpzA== 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:mime-version :in-reply-to:date:dkim-signature; bh=Dyuu5wU7j8YU7zpj0pOZ8BO/c8tny2d3D8gekiPd7fA=; b=PScVA61iFZnIDyNbXzk1yXFs7SsObIoHYgCQ1ChENmZy/OPbWhUp6RdgLC3eiubQyj D5eLa8g5ZlKQYIAcE45j0hA8I4mSWj4xmwAf4+LN4Kccft+HNAP0I6lx20txPmpc4N+L cqYLzcKqRrSOzVVKN0AhykSuwgOItNskoBb2DHbRYJ8923V1W0wrIo6aw8Pb+2h/5zxq QyQFNNEazH/P7SAiVdcOtRpN7LNLHo5jGfcgfwmomLBSxU51IAowo2WtLBk5l3VNEoLE 4r4Hdf80qB5jtvFSKGu2dt/48wW8FT3bsow8Ng5393xEFYhplOCSkRzT4qCk+l5Rzpzd aj2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="d8/Zb9Yg"; 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 y11-20020a65528b000000b0051b17eddce7si13635180pgp.586.2023.04.18.10.09.29; Tue, 18 Apr 2023 10:09:47 -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="d8/Zb9Yg"; 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 S231600AbjDRRBc (ORCPT + 99 others); Tue, 18 Apr 2023 13:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232395AbjDRRB3 (ORCPT ); Tue, 18 Apr 2023 13:01:29 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8958A2D42 for ; Tue, 18 Apr 2023 10:01:27 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id j6-20020a255506000000b00b8ef3da4acfso24447496ybb.8 for ; Tue, 18 Apr 2023 10:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681837286; x=1684429286; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date:from:to :cc:subject:date:message-id:reply-to; bh=Dyuu5wU7j8YU7zpj0pOZ8BO/c8tny2d3D8gekiPd7fA=; b=d8/Zb9YgCa8eVlBLTpV+NJ57rdS1xsLfkqIXEKvUHW2uAls6J+FJzlZN6Ji/4uRir/ 1zS+MdaFNxXGCzCFIaF1aqXoOXWg1iFKiZNpDvV9eSfZylaThYuxowhj3wxPLo7slf/4 LHgnLU2DGCVx3/24VmikxziwoDQgW6WdB6Va8iTHc1Yg6NoxaE0GSi5sFvNhfyQ8EBlj Geyjaz/WvFCOZ3LFQBwGUhsO/cbtnHrGgBtiKMeYHxW+6m89BnzcmE/zONLKuZzIK3Zd WwjlA2lMQP53PxLKQnfqOnLmqIoOsiRGWzjBF4baNzHxGVTgYocW6PIPjpngll6Enuy7 +yGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681837286; x=1684429286; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dyuu5wU7j8YU7zpj0pOZ8BO/c8tny2d3D8gekiPd7fA=; b=IdnfPXjosq65ZcejE3/VAzUEcDu4YhpFID3xXEwg6peMO7XX9KJjV7mZk89PQ9IXqc S6e7u9c7LgXSFRAXMUisO9I4YXyfd5SJ7fg2e9ZsaHXefy7DXRVD1oBu5VffyrH12ywS 3/n8BGZJLx2cLmfWD+ReWoqgTSKt71t/Ly2uwfMbFabOU+rD3QHQTKs8VqwkGhuNzg6g rfd27oemUil1mox0o67xCJlTQ6xrzYP31E7gsqRgaKt3MOTB8hHt7uBagvIwht0Uyop5 OltEIRWcZ7tNS/8aV2cPduKL99AMMwC4wnyvEwcGX2VloSqlS3PKxrjKoturwcYsd1yF ntWA== X-Gm-Message-State: AAQBX9cU2eHCTlzrzDz9cWzuW+1lUVjv+mWFn//uCOc8sXw/FUbJjiF+ HFED2lRKDmEzMfxdV4uWKXyU0oOlMGksu6Te/w== X-Received: from ackerleytng-cloudtop.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1f5f]) (user=ackerleytng job=sendgmr) by 2002:a25:d707:0:b0:b8f:578c:4e3a with SMTP id o7-20020a25d707000000b00b8f578c4e3amr9653508ybg.12.1681837286764; Tue, 18 Apr 2023 10:01:26 -0700 (PDT) Date: Tue, 18 Apr 2023 17:01:25 +0000 In-Reply-To: (message from Sean Christopherson on Mon, 17 Apr 2023 09:40:38 -0700) Mime-Version: 1.0 Message-ID: Subject: Re: Rename restrictedmem => guardedmem? (was: Re: [PATCH v10 0/9] KVM: mm: fd-based approach for supporting KVM) From: Ackerley Tng To: Sean Christopherson Cc: david@redhat.com, chao.p.peng@linux.intel.com, pbonzini@redhat.com, vkuznets@redhat.com, jmattson@google.com, joro@8bytes.org, mail@maciej.szmigiero.name, vbabka@suse.cz, vannapurve@google.com, yu.c.zhang@linux.intel.com, kirill.shutemov@linux.intel.com, dhildenb@redhat.com, qperret@google.com, tabba@google.com, michael.roth@amd.com, wei.w.wang@intel.com, rppt@kernel.org, liam.merwick@oracle.com, isaku.yamahata@gmail.com, jarkko@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes 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=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 Sean Christopherson writes: > 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). How about "opaque"? I think opaque captures the idea of enforced information hiding from the user(space), and that the contents can only be manipulated via internal (kernel) functions.