Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp549838rdb; Tue, 31 Oct 2023 15:19:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMoxEyALYRyZhi5ERFKwrJRVxvMMJ0NJ4T7EKC6KHyuLXRsA3DOyMZFIXKU8KeRToHeBL9 X-Received: by 2002:a05:6a00:1825:b0:6be:1f19:e5f0 with SMTP id y37-20020a056a00182500b006be1f19e5f0mr19340562pfa.25.1698790751055; Tue, 31 Oct 2023 15:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698790751; cv=none; d=google.com; s=arc-20160816; b=htifyu3obKx6HWEZaGB69w/RWUrfx370TZeAi97yhRAW1nZlbkosbBLIHr9DymHMcI cqR8yMGUMPCGYS21zzrBoGmznD8GUAfS2caICQd6Znj+9TQ2cr+EDU8DRxI3ONwODh94 RW3nG185ncmtLFlqE7HkzYQFFPHANLjpFAfprU/XSo8IkKEzIxoOjyOZIKx48I5sUNHt hvuiZUFST5i/djkXar3NvaLpUSWhSMo82lz0Bb2BCJ+hk9hkEE6YaXjS+NFyLUZDgiP1 H87c8bq05VMr0fCHnH5YIId7OS9/PqpTK4e8qgMcL6xW7RzaUgyCY1YA00wFrwaBEueB ik4A== 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=kfYGCdpNkdX5yz1jUhkJ/3qqRF866UiTHuuzMPk/uy0=; fh=0zZQBhnGBThkPwc0nHr7Y/mjoBG/fD4SUzQFSaxXr8s=; b=kE7nbWcXEkkgsdkB0bUECPeIsnxhLxp52VQCw0EVJdiKGBzGoPS7NSWZOekl2UjO0w 3bm5XVxF6gV2EFTwFbMDAe49SfdDWfJi3ifOJWtTg2kE4bIjryCc7FhJQG0JTt/autym N2atYFZOtgaDCPiIAzr5R8slp7X0BsDzV2UvGXpRBZbBZu3dU+LvYXCqUxTlamdPOa2W Ke1o9QehCwTGgl383h8bSrxkqqFRLe0sQMw2771fVExNj6cAaA4nlRs8vcZklW3PYOtt zbvpdO/Tqj7owgBEXf/C5zh3m4JQVjn7Lylc+4MyBy8CRqyew1MqkIyvIrDi4yFxW/LC eDdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="U/HXjC4K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h70-20020a638349000000b00584e65212d4si1660855pge.609.2023.10.31.15.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 15:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="U/HXjC4K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D35EB804DDBF; Tue, 31 Oct 2023 15:19:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346390AbjJaWTH (ORCPT + 99 others); Tue, 31 Oct 2023 18:19:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344917AbjJaWTG (ORCPT ); Tue, 31 Oct 2023 18:19:06 -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 38CB5F4 for ; Tue, 31 Oct 2023 15:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698790699; 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=kfYGCdpNkdX5yz1jUhkJ/3qqRF866UiTHuuzMPk/uy0=; b=U/HXjC4KoPV/Btr64/oDMmCFswL4JdEWUn4iFg7PbR6UdUT1dd6oFwZb7jZHNNWz7DNOLc IJOCnsxuYILAR6fmdvARcSHeDfsbBnkn+LUGE/ZMRrZUi0MZcHESk15m8WxqI5yX5haiHd rYEWAv/sukBArIm1PoLdvJz0Oh2u6PE= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-142-pk01an7-O8GxuhxGCdV9HQ-1; Tue, 31 Oct 2023 18:18:17 -0400 X-MC-Unique: pk01an7-O8GxuhxGCdV9HQ-1 Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-457e3fa6563so2041572137.0 for ; Tue, 31 Oct 2023 15:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698790697; x=1699395497; 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=kfYGCdpNkdX5yz1jUhkJ/3qqRF866UiTHuuzMPk/uy0=; b=GcHEJAu7n++vrtB1AsWmk7+tlckyOqoLzlLYFhK//K1uikJaX/QZNKMdTsc7uF9RI5 KEwZSSxccMCCSEiv0QAyYJZ0Hn6uGNbSvC29b7CEye8uR7Iano9rOY6S+5sl10eWk3yA xO0V2sNJ1eg6NN2U2uLmTqxgvCdFr94TvNGhucyL7uw1a2rJjaGo01j1B7sP4ChUXLFX xgjzWnMbPSTl8cP7huSyDQfe1H35nm9QDhtOpZ2CXUd9oS/ExWshVqmB756NLvRNGGtj 91a1KwpMWdAubZ2Mc7P6iMUBZSlo/bB5ZiPUfDAWt8YF9FVi5XXzmNb/cqabyWLqb82H YsvA== X-Gm-Message-State: AOJu0YxKsNCmd9ZXQ0R4EyK5qj3VCM9jT/CXreXj3mTIMu/7NcB2tSLn VpJWfVPrXsSqie054CCFJf//88pPyBZTie6TeIQDsPj6iacbxGblIdbtGJvmXiT1IEmC0nGCyFy LT+dPXfxF6CvufPsSFJxnLTSM0EpJbe6mrqdNp4Rm X-Received: by 2002:a67:c218:0:b0:44e:99a2:a42 with SMTP id i24-20020a67c218000000b0044e99a20a42mr9981761vsj.11.1698790697104; Tue, 31 Oct 2023 15:18:17 -0700 (PDT) X-Received: by 2002:a67:c218:0:b0:44e:99a2:a42 with SMTP id i24-20020a67c218000000b0044e99a20a42mr9981736vsj.11.1698790696825; Tue, 31 Oct 2023 15:18:16 -0700 (PDT) MIME-Version: 1.0 References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-17-seanjc@google.com> In-Reply-To: From: Paolo Bonzini Date: Tue, 31 Oct 2023 23:18:04 +0100 Message-ID: Subject: Re: [PATCH v13 16/35] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory To: Sean Christopherson Cc: Fuad Tabba , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Viro , Christian Brauner , "Matthew Wilcox (Oracle)" , Andrew Morton , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiaoyao Li , Xu Yilun , Chao Peng , Jarkko Sakkinen , Anish Moorthy , David Matlack , Yu Zhang , Isaku Yamahata , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 15:19:10 -0700 (PDT) On Tue, Oct 31, 2023 at 11:13=E2=80=AFPM Sean Christopherson wrote: > On Tue, Oct 31, 2023, Fuad Tabba wrote: > > On Fri, Oct 27, 2023 at 7:23=E2=80=AFPM Sean Christopherson wrote: > Since we now know that at least pKVM will use guest_memfd for shared memo= ry, and > odds are quite good that "regular" VMs will also do the same, i.e. will w= ant > guest_memfd with the concept of private memory, I agree that we should av= oid > PRIVATE. > > Though I vote for KVM_MEM_GUEST_MEMFD (or KVM_MEM_GUEST_MEMFD_VALID or > KVM_MEM_USE_GUEST_MEMFD). I.e. do our best to avoid ambiguity between re= ferring > to "guest memory" at-large and guest_memfd. I was going to propose KVM_MEM_HAS_GUESTMEMFD. Any option is okay for me so, if no one complains, I'll go for KVM_MEM_GUESTMEMFD (no underscore because I found the repeated "_MEM" distracting). Paolo