Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3594951rwo; Mon, 24 Jul 2023 13:33:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVMabM9t3SC1E+ve3QmKVFldtGiOdcGw+CRp/I5yhoI7lGVsX5R5nWceTsKrBT3NDf2ixg X-Received: by 2002:a2e:8611:0:b0:2b9:6029:775a with SMTP id a17-20020a2e8611000000b002b96029775amr6966247lji.18.1690230787279; Mon, 24 Jul 2023 13:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690230787; cv=none; d=google.com; s=arc-20160816; b=OtDWc7lyJwPbNINFcLe9Yb/0/lNOPfGGCID92MvGkB3mc2CgdFM5fJM8t3WqSYl7y2 AG1UIcXVoecJ34b/YUIHTkMvkqIrcDO3L+650PfGYfVWZoJj4HNX38rFITRtwb1YLEJg CiAfiu7RwTEimdDnOcTwdsd5wzyfifAmtHkXImaPkKFqFLqcvEco7hkeT0CmNmwOW/Jx exnaip2+Xr/eJ1s7LpZbgncEZ0+Ia7SXZ9NUQ0x2L9taGAFtyKZ144n3LzhqJ7xOYmW8 MUCHI/F/xCI1evZCbm3Y99+SUcqyT4izNaDDWp9FOpIFRoS7G/FBdRRPkVyFSvsxRsBw eQ2w== 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=CpyeHlxyK/Wxza2B0XbnLOYUqgpeakiOlUVm3eRpM6Q=; fh=p92FaUofm+ytfUtVWIMrwoecBzVh4GAcpLoCwQiZ/A8=; b=jT8RiXzkkDysFAHTL1n1tJ6KsJ0rZWScjAQ639MjPzHFrxEFgCzdBIN9ohP0oPqrHp nHZK6dgteSj4rs9zJd817uz+JnItdXwL3fVLdesbe+8MuGNEMDV987+9e5Ni5gBrNHFc e9f/WB1S/cxCMxJMUgf1xTJnT8ZuTXGPd6BE+MUHqKJcqp3JAHEhrIxrX6iN2CO5Z7JG yfWaBZz1twofUi1QurNv3Fa6sGbB9t84BYUkKK+rp2BWKAW0HuIKfUceyAREgehJY5fI cj7A2P2rsIIEz4XdLSx/B+3bn9K/TpAUVRmmJ70y7h4TOFtXievy2RXD+YxdiGPc1taK ApUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=j6FiLWVW; 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 h10-20020a170906590a00b00993a68a3af6si6443719ejq.511.2023.07.24.13.32.42; Mon, 24 Jul 2023 13:33:07 -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=j6FiLWVW; 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 S229479AbjGXUQf (ORCPT + 99 others); Mon, 24 Jul 2023 16:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbjGXUQe (ORCPT ); Mon, 24 Jul 2023 16:16:34 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24BE9172B for ; Mon, 24 Jul 2023 13:16:29 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d0c9fea7efeso2435028276.1 for ; Mon, 24 Jul 2023 13:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690229788; x=1690834588; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=CpyeHlxyK/Wxza2B0XbnLOYUqgpeakiOlUVm3eRpM6Q=; b=j6FiLWVW1BEQWGRGDCNKnMdB/uBrkbSbLa1K1EDw/LiBM7C6eVkoRkCUsQ09WI8/Mv Fny2LhZv1neNQ3Jabn3zYbY6YAZITRpwrzXHx4zZI9u5ceWLtCDmcrZMemFoU3tDb+fK QbZ10Y+HN6R5WqhLtydaZX/6MwLGX2RVH/oHsL6aYKs8GIgi9WZA1x9l1MEoJwLIL1vk itEK9g3ya0QTjILKmAA+DLMdCsEqRbStG5n7GR6YMdTn19PRPfIIB/OUkoR8GuYkump5 Op2hTrJXwr4NruPzzDOUA9+Du2VRB5PlDnJFULu7iJPUU+tT8iGY+bsTsCFdJfYvGyo6 5PLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690229788; x=1690834588; 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=CpyeHlxyK/Wxza2B0XbnLOYUqgpeakiOlUVm3eRpM6Q=; b=BRhEhOJGN4j9NXv7t9eEepJiGtoZmu31EC28UXKciysPsCFK4uQznaD+2C6Zt/jiGj wwask82hMhaNdzEk+Gm+aSfAY/q0AO/4L3r+X+QrwXLRKz8tXPK/R1iLjV3b4qUHHH9y oLBnUJ9b9KwroA2Rm7B3OW4n4v+kJBWVixUxUhEP4dBi47guhJTOBdGWSV2uuWEOnA+C vMuvHRGwqbzxTJ5/g6FjlrDRjMbxF1sn1KgOq9Smzd1DEPUiOMiDECEh3eB/36uq/b8y P9cpElU5HNxsZ25uuLnrva+PHd8XEkZGNjaXCac++aPjE3f47ge40rJza3czO9T/LokF ih6A== X-Gm-Message-State: ABy/qLaCvStR32z6BvjhNkSo0Gh4+pZqtK3o9T8rl6KJVc3c7nBCKnd8 oFLocWkJ//OzncWTusk2GWCjCG0/yPs= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:100f:b0:cf2:ad45:2084 with SMTP id w15-20020a056902100f00b00cf2ad452084mr67527ybt.12.1690229788310; Mon, 24 Jul 2023 13:16:28 -0700 (PDT) Date: Mon, 24 Jul 2023 13:16:26 -0700 In-Reply-To: <20230718234512.1690985-1-seanjc@google.com> Mime-Version: 1.0 References: <20230718234512.1690985-1-seanjc@google.com> Message-ID: Subject: Re: [RFC PATCH v11 00/29] KVM: guest_memfd() and per-page attributes From: Sean Christopherson To: Sean Christopherson Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Sean Christopherson , kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , Kirill Shutemov 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=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 Dropped non-KVM folks from Cc: so as not to bother them too much. On Tue, Jul 18, 2023, Sean Christopherson wrote: > This is the next iteration of implementing fd-based (instead of vma-based) > memory for KVM guests. If you want the full background of why we are doing > this, please go read the v10 cover letter[1]. > > The biggest change from v10 is to implement the backing storage in KVM > itself, and expose it via a KVM ioctl() instead of a "generic" sycall. > See link[2] for details on why we pivoted to a KVM-specific approach. > > Key word is "biggest". Relative to v10, there are many big changes. > Highlights below (I can't remember everything that got changed at > this point). > > Tagged RFC as there are a lot of empty changelogs, and a lot of missing > documentation. And ideally, we'll have even more tests before merging. > There are also several gaps/opens (to be discussed in tomorrow's PUCK). I've pushed this to https://github.com/kvm-x86/linux/tree/guest_memfd along with Isaku's fix for the lock ordering bug on top. As discussed at PUCK, I'll apply fixes/tweaks/changes on top until development stabilizes, and will only squash/fixup when we're ready to post v12 for broad review. Please "formally" post patches just like you normally would do, i.e. don't *just* repond to the buggy mail (though that is also helpful). Standalone patches make it easier for me to manage things via lore/b4. If you can, put gmem or guest_memfd inside the square braces, e.g. [PATCH gmem] KVM: so that it's obvious the patch is intended for the guest_memfd branch. For fixes, please also be sure to use Fixes: tags and split patches to fix exactly one base commit, again to make my life easier. I'll likely add my own annotations when applying, e.g. [FIXUP] and whatnot, but that's purely notes for myself for the future squash/rebase. Thanks!