Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2892008rdh; Mon, 30 Oct 2023 10:32:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiifDFKOi9ccMnSbqMpE8BSYx1YDJciU1sLsq1ytvvyQ6uAAi57otAg+igF5ZTKt0kW2sh X-Received: by 2002:a17:90b:fc2:b0:27d:76e2:ab18 with SMTP id gd2-20020a17090b0fc200b0027d76e2ab18mr7577704pjb.9.1698687121707; Mon, 30 Oct 2023 10:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698687121; cv=none; d=google.com; s=arc-20160816; b=lwC/mlbxGq/6m58/OB7LKbdRYKWf4u7qZMHoQfrsFLPOGhXkmmP/f3zNVngYTvS/+D CCCHWd+549yhi7LYRnGmZ9pLppdAAiiJ3hkL497qnpAJuO58ZTqdjHOCEw/fL6k37Oum ZjPEVzDOCtSHUGOnZYzr+RjegV3JZGh3T8JiUKps7DGSW/kfpwhLwEhKh4Iyn15xhL7O vdTpCJ8n/1jeQ+45NwDras2oEeySj2GiYGwlT4N6gmwXIuuDMIUPAxOvHQ+XxVWlKS2Y mDfEa2sESiQQ7K5+fgH5HXL2Z/SNikLjCzImsugWCcNdHZI7oltZguH8qB1gk7qgPmYh G37A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=kzSwq3LcsIGB4kJ8y5dDYKXfNxy9k2vONtVBXrysXxs=; fh=9GjpMzJz+uuhn19uB36EwSK3xE6lNesC+Xo4sskdlZ8=; b=ohYjc/b4W9zqQnoJ3esQZP69qNvYu0RunF2gk7MYRH+tkbRXaxsIl1QwzNjsXTMxRW lzaBxyK21ULedRTxwAmpDRpYf00RJ/eDZjeIC9cPtc3hkUf6knDX7g2P52EX6+SS01Y4 UOFFyu74JrspaStvQBIpg0L7/4Fz7QtTNzG4EfxeYJMvHqbWAoJMuKE00GGIIAlA02xk crJk8+y4ih9oQqX0BOohlucr3itUdj7mmBoFKseZILzkK2QIBiZFoPqSPSGzlIxwYMvb QNUuVa6t2JuIXrT20GENYa4+HittroIDf0I8fowK8KGy7VXJeCyBUvZZ+k5k08hO5Ev/ iODA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XLaUcXNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q12-20020a17090a9f4c00b00274d6373fe1si6056708pjv.120.2023.10.30.10.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 10:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XLaUcXNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 477D0804916B; Mon, 30 Oct 2023 10:31:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbjJ3Rbr (ORCPT + 99 others); Mon, 30 Oct 2023 13:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbjJ3Rbq (ORCPT ); Mon, 30 Oct 2023 13:31:46 -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 6531399 for ; Mon, 30 Oct 2023 10:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698687063; 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:autocrypt:autocrypt; bh=kzSwq3LcsIGB4kJ8y5dDYKXfNxy9k2vONtVBXrysXxs=; b=XLaUcXNlriF0kKOW/7+komAqbbFCtMDk0O5OLCLgHfdj8xEtlKSoiBOLJ8lXtz3/5+k3ak WLpOQ87gEGfWzBCsWN+1eQSO5i+4gpHQiur+FhVt8VyxsmB2KsTpwwntHkCoEqEEmFtmiB kB/bpfaz8kNec914/pQAaIAA6X/gRLQ= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-596-LKZbGCJCODK0U9hR3_DiCg-1; Mon, 30 Oct 2023 13:30:57 -0400 X-MC-Unique: LKZbGCJCODK0U9hR3_DiCg-1 Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2c50dcd377eso50360591fa.2 for ; Mon, 30 Oct 2023 10:30:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698687055; x=1699291855; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kzSwq3LcsIGB4kJ8y5dDYKXfNxy9k2vONtVBXrysXxs=; b=QkBunNF7KeBM2sz0fUsxE2ksglQJUZtR0W985FUyxWSSp5AFiGH+o47lK9/WW+XP+B n0UrNArRfvsz2sO+cH8Wk2QuZIDte2RaGbf1Q7BEjAoe6vl0I6euQG/OecyGhnkCHGCW FXQcu6xqHTcNztd9poPSEPtK7KxtfB+KdDmBki+yoBltPpgJnDIHH5RI9GIB6wTt/ROs dPG/YjMS1jIVkRtveKhqRCjdOKCCP/ZdxQw4xNlGSU89hjD+5ROJX0OJHVE/zOXWCkec FRKK7qkZLqW45IQ2SVpAyWFwOK3oMhBTgnTIjFxlFaMW62sSoMFBcX6gl3b8q1ZKKbDZ uG6Q== X-Gm-Message-State: AOJu0YwkdryRtkbTahv/aX7SBeOYL1KaK75m0gk76zc9DXhGxRp3fFQH hm2gGuA76uKFcVNRD1qy0rDfMTDAbIM5sicLNM6gMyHuRxi/DBgBuKUYCDaO/Kx2DACha/Lrrd3 MCa7rgZR8CtCR/Pulv+Bmx56K X-Received: by 2002:a2e:b808:0:b0:2c5:27ca:478b with SMTP id u8-20020a2eb808000000b002c527ca478bmr8146999ljo.7.1698687055753; Mon, 30 Oct 2023 10:30:55 -0700 (PDT) X-Received: by 2002:a2e:b808:0:b0:2c5:27ca:478b with SMTP id u8-20020a2eb808000000b002c527ca478bmr8146970ljo.7.1698687055317; Mon, 30 Oct 2023 10:30:55 -0700 (PDT) Received: from [192.168.1.174] ([151.81.68.207]) by smtp.googlemail.com with ESMTPSA id c5-20020a05600c0a4500b004094d4292aesm449246wmq.18.2023.10.30.10.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 10:30:54 -0700 (PDT) Message-ID: <50cf2a74-5702-4b7a-8bbc-7f9b5d56b4d1@redhat.com> Date: Mon, 30 Oct 2023 18:30:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v13 15/35] fs: Export anon_inode_getfile_secure() for use by KVM Content-Language: en-US To: Sean Christopherson , 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 Cc: 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 , Fuad Tabba , Jarkko Sakkinen , Anish Moorthy , David Matlack , Yu Zhang , Isaku Yamahata , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8?= =?UTF-8?Q?n?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-16-seanjc@google.com> From: Paolo Bonzini Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0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CCL77bucx9uImI5nX24PIlqT+zasVEEVGSRF m8dgkcJDB7Tps0IkNrUi4yof3B3shR+vMY3i3Ip0e41zKx0CvlAhMOo6otaHmcxr35sWq1Jk tLkbn3wG+fPQCVudJJECvVQ//UAthSSEklA50QtD2sBkmQ14ZryEyTHQ+E42K3j2IUmOLriF dNr9NvE1QGmGyIcbw2NIVEBOK/GWxkS5+dmxM2iD4Jdaf2nSn3jlHjEXoPwpMs0KZsgdU0pP JQzMUMwmB1wM8JxovFlPYrhNT9MAEQEAAcLBMwQYAQIACQUCVEJx7gIbDAAKCRB+FRAMzTZp sadRDqCctLmYICZu4GSnie4lKXl+HqlLanpVMOoFNnWs9oRP47MbE2wv8OaYh5pNR9VVgyhD OG0AU7oidG36OeUlrFDTfnPYYSF/mPCxHttosyt8O5kabxnIPv2URuAxDByz+iVbL+RjKaGM GDph56ZTswlx75nZVtIukqzLAQ5fa8OALSGum0cFi4ptZUOhDNz1onz61klD6z3MODi0sBZN Aj6guB2L/+2ZwElZEeRBERRd/uommlYuToAXfNRdUwrwl9gRMiA0WSyTb190zneRRDfpSK5d usXnM/O+kr3Dm+Ui+UioPf6wgbn3T0o6I5BhVhs4h4hWmIW7iNhPjX1iybXfmb1gAFfjtHfL xRUr64svXpyfJMScIQtBAm0ihWPltXkyITA92ngCmPdHa6M1hMh4RDX+Jf1fiWubzp1voAg0 JBrdmNZSQDz0iKmSrx8xkoXYfA3bgtFN8WJH2xgFL28XnqY4M6dLhJwV3z08tPSRqYFm4NMP dRsn0/7oymhneL8RthIvjDDQ5ktUjMe8LtHr70OZE/TT88qvEdhiIVUogHdo4qBrk41+gGQh b906Dudw5YhTJFU3nC6bbF2nrLlB4C/XSiH76ZvqzV0Z/cAMBo5NF/w= In-Reply-To: <20231027182217.3615211-16-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 10:31:59 -0700 (PDT) On 10/27/23 20:21, Sean Christopherson wrote: > Export anon_inode_getfile_secure() so that it can be used by KVM to > create and manage file-based guest memory without need a fullblow without introducing a full-blown Otherwise, Reviewed-by: Paolo Bonzini Paolo > filesystem. The "standard" anon_inode_getfd() doesn't work for KVM's use > case as KVM needs a unique inode for each file, e.g. to be able to > independently manage the size and lifecycle of a given file.