Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5107669rwe; Tue, 18 Apr 2023 02:04:10 -0700 (PDT) X-Google-Smtp-Source: AKy350anSncwGSejyau2UcxA4tjhtO8Ho2+duQFiJdIdCxXVqFSDyMA7IVGDjaLkXxiYQ4qphRUR X-Received: by 2002:a17:90a:c405:b0:247:2300:87d9 with SMTP id i5-20020a17090ac40500b00247230087d9mr1396563pjt.34.1681808650731; Tue, 18 Apr 2023 02:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681808650; cv=none; d=google.com; s=arc-20160816; b=Sc43BEBHtgUxO2UMydQ1N0M5bzHaeXi4XU6b2QaFA+um3c2maw2Buf5b65+574z7SJ CpXZtM2a8TeEsfj6+dwYLmjQ4mtvFc/QdJz57kVXqVCigMTjYoRlli+q44X96l7W2xD/ phUYg6D5Yl16o+Z3/I0kcgQb0s1LJejOR2Xns7WYDYDKNzKDXS8fZNafZ0jqJzsxhBqA bwUiDB4bQX70jyL4G7SWv7Rcin4CwFPxSRSRMyY69sPf1QWiT7adPYk59FW2SU086wAV qYScpTua7xQOkkiRjz6m0ENLrksDfevi3KYoTNyqmV2evRb7Srj1ajreaBAM0rTNmsmx UFmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xMHN7KanUjqen8e6uVmp37kumpsKyjGdw6AOhbW3UBU=; b=B67TSr4JEg3Wmk+rRlzD5GasUS596+Ov8gshKVevqxRRydeJTFJr8cF+fB0i5cGkwb psBLtnNJsiQr1jTbKoLcAPGxldTW/QpkZ2vH/ZuTqZOexyyXkTgoMmGu8r8w2G1kiAsl 7mjr3QvPwLt6aj5zpcWWxdOLkhxsoMkvXswSep0c2kBT+SM8Tquo/KXDMBNV1HJdEHge lOxfLLioTpIb90eKUGM2A1qwMETB1TxzPkJDQSwkp1rgxS2bKJJRw9NPs/N+g0I4pnHm rOoJOBnVJ77VYlEGVC9QoIva3cLX0BDZANpO94Qbnkl0re/kVa/ieeVyskaddZW7slIV vGeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="0/NlYDx4"; 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 lp10-20020a17090b4a8a00b002474c0c63ebsi1336823pjb.0.2023.04.18.02.03.58; Tue, 18 Apr 2023 02:04:10 -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="0/NlYDx4"; 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 S230443AbjDRIym (ORCPT + 99 others); Tue, 18 Apr 2023 04:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjDRIyj (ORCPT ); Tue, 18 Apr 2023 04:54:39 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950F56591 for ; Tue, 18 Apr 2023 01:54:36 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id a10so12761792ljr.5 for ; Tue, 18 Apr 2023 01:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681808075; x=1684400075; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xMHN7KanUjqen8e6uVmp37kumpsKyjGdw6AOhbW3UBU=; b=0/NlYDx4EiWln6WGkyAM+LND7xNxWwQqqHb0Bagd4elMu3Fv5oW/J6WzKrzblGLgjg QBCRSsT1QsjFJ5LpTceQNsUjSIW/vYv4IsUI0ic3ecs4n46TAZrNdbpbP2Ae30c4qR0p 1fgyohj177jjxFtXnbNjDtstSv19CzZqZZSBGw4LkSSOrt9u8BxODcNE/Kn5BxhdG+sQ qJiZXN+TLwWFx2byQR6OGeQ0p+PRhHH+Yo30+PGPl5VrUdyJxe4581ktRMnIHc0pz4bo w//7wMblOyDCgzc7zxTO+DS592hnbam0wNDEdEI9KWoPgbzvkjMe+7jSDks2pSsdDrE+ +grw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681808075; x=1684400075; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xMHN7KanUjqen8e6uVmp37kumpsKyjGdw6AOhbW3UBU=; b=ZFoR4vVjSPE59GDoAuH7mj03wWxvmq/cDNuWmet9NicAQNpISJgykV6KkN56PvzhCp 6hPhJa15LG49F1CEPs1QSpNl+1wMwy8fkmy6w+DwIRFa+mn6YMkofYG+eJZG0iAXNNy2 dTJoY6GrBpzLQNt0E7iHn0NE10ZUR2v1YSO91TOPFBeLUe5d1qYhgpiRNoPkp9DAsGQr SrWQ7Z84+36Mqf0sjKflTL6XPUmHEHpQs8nF7azoeHtjcFiUIIk2DowBV6OXjHkdgPdH GtTt+J3CthhevWN++kRa5VLRrHay6n56RpGv/FvZ4NsP+CrDMpWpPr6+DWZHj8EiI5S1 vwZg== X-Gm-Message-State: AAQBX9cPHciKHaRW/v5wqTLq9mk3SJtL2y6/Hcpdm+VnECemoLmwrmpS dgg4S9AtqmgeFYZppjJly0mKDwC0kjqG18R1qk6Ytg== X-Received: by 2002:a05:651c:1a0b:b0:2a8:647b:3024 with SMTP id by11-20020a05651c1a0b00b002a8647b3024mr463620ljb.25.1681808074745; Tue, 18 Apr 2023 01:54:34 -0700 (PDT) MIME-Version: 1.0 References: <20221202061347.1070246-1-chao.p.peng@linux.intel.com> <658018f9-581c-7786-795a-85227c712be0@redhat.com> <1ed06a62-05a1-ebe6-7ac4-5b35ba272d13@redhat.com> In-Reply-To: From: Fuad Tabba Date: Tue, 18 Apr 2023 09:53:58 +0100 Message-ID: Subject: Re: Rename restrictedmem => guardedmem? (was: Re: [PATCH v10 0/9] KVM: mm: fd-based approach for supporting KVM) To: Sean Christopherson Cc: David Hildenbrand , 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 , 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="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_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 at 8:16=E2=80=AFPM Sean Christopherson wrote: .... > > So the fd content is inaccessible using the ordinary POSIX syscalls. It= 's > > only accessible by special entities (e.g., KVM). > > > > Most probably I am forgetting something. But maybe that will help to fi= nd a > > more expressive name. Maybe :) > > Hidden/Concealed/etc - Too close to secretmem, suffers the "hidden from w= hom" problem, > and depending on the use case, the memory may not actually be concealed f= rom the > user that controls the VMM. > > Restricted - "rmem" collides with "reserved memory" in code. > > Guarded - Conflicts with s390's "guarded storage", has the "from whom" pr= oblem. > > Inaccessible - Many of the same problems as "hidden". > > Unmappable - Doesn't cover things like read/write, and is wrong in the se= nse that > the memory is still mappable, just not via mmap(). > > Secured - I'm not getting anywhere near this one :-) How about "protected" ;)? _ducks_ To me the name doesn't matter much, but fwiw I have developed a liking to "restricted", more than the previous "private", since of all of the one-word suggestions I think it captures most of what it's trying to do. Cheers, /fuad