From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 775CBC2BD09 for ; Mon, 24 Jun 2024 21:50:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0ADFC6B036A; Mon, 24 Jun 2024 17:50:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 05D7C6B036B; Mon, 24 Jun 2024 17:50:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E404D6B036E; Mon, 24 Jun 2024 17:50:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C75936B036A for ; Mon, 24 Jun 2024 17:50:24 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 404B041394 for ; Mon, 24 Jun 2024 21:50:24 +0000 (UTC) X-FDA: 82267126368.16.12AE7F9 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf15.hostedemail.com (Postfix) with ESMTP id 5B62DA0011 for ; Mon, 24 Jun 2024 21:50:22 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=QO+VgNVS; spf=pass (imf15.hostedemail.com: domain of rientjes@google.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=rientjes@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719265815; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2lDDpbzZjbYoW0ZccZa58xFekph1Nf38bp9Ut4WlNiM=; b=sKUdD/th6cpepKpIxe3uo0ckjB8hG5gfq4XEaF6SY+FQZ1dgnYNkaTrPTGb6A9aMYHLS7E C3QrF1CY0msYOKXXj7CAioGKWRnXVZvgoTcgkVSPXKvLZDFhKgdJehA06UzPZLQNDWgucG FWUpdbQVsYtGjc+fsn6LWjSUmi2Udz4= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=QO+VgNVS; spf=pass (imf15.hostedemail.com: domain of rientjes@google.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=rientjes@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719265815; a=rsa-sha256; cv=none; b=djIoD0if7T+VK5/MHea1d24JOUoViGtpnG7gH2EgzVu3M/geuueTtpycZKXBIZMZzBVPpK GHcqnkULYimGsz25cEKC7Es+4+GPnwCg53c62A4fV3vnCDRtXuC8tYLvX80O0PHhF6h/Vn Akj6kDMf6oD6OB8+SX2wkHFNJy07vhA= Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1fa4b332645so21835ad.1 for ; Mon, 24 Jun 2024 14:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719265821; x=1719870621; darn=kvack.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=2lDDpbzZjbYoW0ZccZa58xFekph1Nf38bp9Ut4WlNiM=; b=QO+VgNVS9uQpMF7GE5tbrhQKQ5f/eRv2GNZ74o8H3VinKqca+ittlXOtjKJCUxipKC FraonT4Rls9xOKOo4ty8nKoYVQU9zC8AtLpXFEVF6MLMhrFWI6FGcz/4PVrO8wslQVA+ Q6t5rs+Dlzmze2X6pNRY9qejzwV4I50lwSSW0u3uQzWa1i7vGp0A4ewCeAv2I6hsQ0ar uHzy8XhdZR5VemPb0/WKXP8MbgKQZ9i+gpA4BlLz9xX3YAet1QMsXbPa0XTUO54yViHt Rh/+H3T/hxCSXhSP6Vz3jaG59BOp7GB8lmiNuiVk9kYQTh3rCMRWcq1MiOwxp34vL7EH edJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719265821; x=1719870621; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2lDDpbzZjbYoW0ZccZa58xFekph1Nf38bp9Ut4WlNiM=; b=e5k1hCxvTPPay/3GvqHZ6d/4dgXnGXN7URPlNI8ZssZFzgqRgWRrgsJ7wQzkBLjCbo P75XV/2TnAHiIUlrCsr1NyXqMPiHlSjncW+HQHS4wyHdzgJa2VVOLRHWrYqXm1zAXoWV z6bhqKBxH08OMwawiXeyqMCVdPsyUeG3IpKQkM3ELAxF5wZX9nHpbY4ksi16+Y3eFSEm /NjB04COblfXugP0Wab918fiLIX/kBdiYvLZ3WlFazirUiLm7robZm7PBZuaQsE+dQh/ Mmv3uFRBTgeMDYBQ9L3wUQl5SsT8HyEkUJqo2nY9AoT9PnGTZmux8RyrdxSR8jVZcahl XyYA== X-Forwarded-Encrypted: i=1; AJvYcCVS2g1tuREM5uqMrtwbSg3knMyOHtsbFUZwJw5hsczAzElnh7qIPHOgUo8BV1eUaD3UInGhldCPDXZSowZ22aLduOQ= X-Gm-Message-State: AOJu0YyszYEGRq05NlFVd6TTKCSrzGHbvlDBBvF91fzFICON7TWz4qPQ D+8JmU46WcFPGHkzRwp4r2U+PBmg1cROIZN4VJXqn14cU8M2UCM4/UfQeig25w== X-Google-Smtp-Source: AGHT+IFeFR7zMjbNB9DCvgCjRBXeGOiI4lkJ8SgQ6QWD0Q5nCQ7py7AEvLDgXuqqLYyDF5Y75QDGNA== X-Received: by 2002:a17:902:bd46:b0:1fa:2c8c:7e8 with SMTP id d9443c01a7336-1fa68fe3318mr1035325ad.4.1719265820845; Mon, 24 Jun 2024 14:50:20 -0700 (PDT) Received: from [2620:0:1008:15:5ad8:4b69:7e4b:92e2] ([2620:0:1008:15:5ad8:4b69:7e4b:92e2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9eb3c5ef4sm67546215ad.163.2024.06.24.14.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 14:50:20 -0700 (PDT) Date: Mon, 24 Jun 2024 14:50:19 -0700 (PDT) From: David Rientjes To: Sean Christopherson cc: Elliot Berman , Fuad Tabba , David Hildenbrand , Jason Gunthorpe , John Hubbard , Andrew Morton , Shuah Khan , Matthew Wilcox , maz@kernel.org, kvm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, pbonzini@redhat.com Subject: Re: [PATCH RFC 0/5] mm/gup: Introduce exclusive GUP pinning In-Reply-To: Message-ID: <5e14ebf6-2a7f-3828-c3f6-5155026d59ae@google.com> References: <20240619115135.GE2494510@nvidia.com> <4c8b81a0-3a76-4802-875f-f26ff1844955@redhat.com> <8e9436f2-6ebb-4ce1-a44f-2a941d354e2a@redhat.com> <20240621095319587-0700.eberman@hu-eberman-lv.qualcomm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="2003064516-1965583562-1719265820=:2019105" X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 5B62DA0011 X-Stat-Signature: xx3gge3rdj9u9d8h7kgqcmd1ob5pqcei X-HE-Tag: 1719265822-661503 X-HE-Meta: U2FsdGVkX1+aGwlHH1UTeKottqg5sXx72B+hvjKeqZkFZTgPyn4vx+Qq3GHS4mGiNydOCJOchcuw2b1teZBidaB7LS28wYDWBuB9PceNa6HkCz382UrjOjc+ZMVbAQNn1pE/XTzlLc9eCs82SaLn/Eo+eKAFlQ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oJ6BCzV86aX153tm8zZ2kIlGBjoHR27TXsMhgUQC5KnSF0zyW+9n+OFJZVcTwoyYpIQVdWy9R8vN7cDRs4cFYcP1kyiTguBv65s3XXuVrzNAbc1GNlG+qDi6AMD/lyVThqfVZLWqZ/F8T4Px9YdugJmU3s/FsSh1xv4eNPyKQxH+XjY/zCGhT6UB/KmxLnJ0hylg5qrjCeASRJhJvhlTXOSaq54k9Wb7DI+00lq//mavlxlXHi0vgz1eLF6+Vh4cTz8ffiI1mflvliJ9Vt/4Ecs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.002796, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2003064516-1965583562-1719265820=:2019105 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 24 Jun 2024, Sean Christopherson wrote: > On Fri, Jun 21, 2024, Elliot Berman wrote: > > On Fri, Jun 21, 2024 at 11:16:31AM +0100, Fuad Tabba wrote: > > > On Fri, Jun 21, 2024 at 10:10 AM David Hildenbrand wrote: > > > > On 21.06.24 10:54, Fuad Tabba wrote: > > > > > On Fri, Jun 21, 2024 at 9:44 AM David Hildenbrand wrote: > > > > >> > > > > >>>> Again from that thread, one of most important aspects guest_memfd is that VMAs > > > > >>>> are not required. Stating the obvious, lack of VMAs makes it really hard to drive > > > > >>>> swap, reclaim, migration, etc. from code that fundamentally operates on VMAs. > > > > >>>> > > > > >>>> : More broadly, no VMAs are required. The lack of stage-1 page tables are nice to > > > > >>>> : have; the lack of VMAs means that guest_memfd isn't playing second fiddle, e.g. > > > > >>>> : it's not subject to VMA protections, isn't restricted to host mapping size, etc. > > > > >>>> > > > > >>>> [1] https://lore.kernel.org/all/Zfmpby6i3PfBEcCV@google.com > > > > >>>> [2] https://lore.kernel.org/all/Zg3xF7dTtx6hbmZj@google.com > > > > >>> > > > > >>> I wonder if it might be more productive to also discuss this in one of > > > > >>> the PUCKs, ahead of LPC, in addition to trying to go over this in LPC. > > > > >> > > > > >> I don't know in which context you usually discuss that, but I could > > > > >> propose that as a topic in the bi-weekly MM meeting. > > > > >> > > > > >> This would, of course, be focused on the bigger MM picture: how to mmap, > > > > >> how how to support huge pages, interaction with page pinning, ... So > > > > >> obviously more MM focused once we are in agreement that we want to > > > > >> support shared memory in guest_memfd and how to make that work with core-mm. > > > > >> > > > > >> Discussing if we want shared memory in guest_memfd might be betetr > > > > >> suited for a different, more CC/KVM specific meeting (likely the "PUCKs" > > > > >> mentioned here?). > > > > > > > > > > Sorry, I should have given more context on what a PUCK* is :) It's a > > > > > periodic (almost weekly) upstream call for KVM. > > > > > > > > > > [*] https://lore.kernel.org/all/20230512231026.799267-1-seanjc@google.com/ > > > > > > > > > > But yes, having a discussion in one of the mm meetings ahead of LPC > > > > > would also be great. When do these meetings usually take place, to try > > > > > to coordinate across timezones. > > Let's do the MM meeting. As evidenced by the responses, it'll be easier to get > KVM folks to join the MM meeting as opposed to other way around. > > > > > It's Wednesday, 9:00 - 10:00am PDT (GMT-7) every second week. > > > > > > > > If we're in agreement, we could (assuming there are no other planned > > > > topics) either use the slot next week (June 26) or the following one > > > > (July 10). > > > > > > > > Selfish as I am, I would prefer July 10, because I'll be on vacation > > > > next week and there would be little time to prepare. > > > > > > > > @David R., heads up that this might become a topic ("shared and private > > > > memory in guest_memfd: mmap, pinning and huge pages"), if people here > > > > agree that this is a direction worth heading. > > > > > > Thanks for the invite! Tentatively July 10th works for me, but I'd > > > like to talk to the others who might be interested (pKVM, Gunyah, and > > > others) to see if that works for them. I'll get back to you shortly. > > > > > > > I'd like to join too, July 10th at that time works for me. > > July 10th works for me too. > Thanks all, and David H for the topic suggestion. Let's tentatively pencil this in for the Wednesday, July 10th instance at 9am PDT and I'll follow-up offlist with those will be needed to lead the discussion to make sure we're on track. --2003064516-1965583562-1719265820=:2019105--