Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp714646pxb; Fri, 21 Jan 2022 01:18:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuK/MYRSvvvxo9MZtw3bOmcChr3lJ06mHuEC/FMI6hAjdjIjvtKJK32YT/vWO6D1bZMu5G X-Received: by 2002:a63:a1a:: with SMTP id 26mr2315318pgk.212.1642756695557; Fri, 21 Jan 2022 01:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642756695; cv=none; d=google.com; s=arc-20160816; b=UjPJuINy7vZyEGAI2nqNkaqOAR9IUEH6aETQb+R5lIhS3lU1UChAtXlgZ2wvyApmJj 7+GG4lAfeAvk3dees1UaQgTAqeOGzzoKgXCQS4h0bc/WFpdTjGCYC/kpMCZx5f4UGbsx AiDWm+N2cTu/98tkiUyaqJbdFFpcyE88gMBflEN9wNRgMMknOMJvAFSmO0OPBYOiFeka DH2u6aIPD6Qcztt9cPoUFUO/LEixLNtOmCsoJdjcdU6rDM6ebbFeAjWCjCyhozX+ko8P aZg7Lpr/oDmEndjG4Y8Wh+Y8hEmJrAkvBzBSdW6ptD5+izwnsKt1cSaNHg/H++TACuN9 xYmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o8OmDpmZwJ79TFW9weYPQvWllvtuDgUzn/OlUeFCC2k=; b=f41kjdketS6m8rNcJaCgorkJmzST4yawKpyFUGj5uF1X06r3apREBc1ptX9HumMbKP 3rClyH4yJdsaNFtKTonoqXoyGmNboSodL0TeaEThFmW300e3fqYRt8QLGaxj3JPCTUsC J+BU32gltUyJfC8Uj0Uwla4zoWyFLQmArtMA3YcI7rOuVGkR12VLQsV9/1fkznfdzzmv OTfV6hLKaw6ryE2R7AZy9cb1GXETWtQajgWGsBYgmSYdFOst9l3PNHsOoAM7lNo7UzlR X3ohmNFXPmgt7Syeiekvv7CT/qWzT1t+qQnegHnbao+ZT5f2ZCxd8zUWbYXpxtoVFKg/ ClMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AtOJQ8qY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu18si11890360pjb.118.2022.01.21.01.18.04; Fri, 21 Jan 2022 01:18:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AtOJQ8qY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344007AbiARVrA (ORCPT + 99 others); Tue, 18 Jan 2022 16:47:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235185AbiARVq6 (ORCPT ); Tue, 18 Jan 2022 16:46:58 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DBA2C061574 for ; Tue, 18 Jan 2022 13:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o8OmDpmZwJ79TFW9weYPQvWllvtuDgUzn/OlUeFCC2k=; b=AtOJQ8qYFVQN9/o1R+g2yTBeJw t8JksLXBwJDcE3vigeGh6whgARjvfzSvxtz5i6xZ9/ixC4Vu1A9fj1y8J7TcXuvXrTPTH293A2+ns bZPV0SN0Nx+Ow+Eyi1WR6fIK6dDagBsXSDac7cWlBgbAstcotChhkyraCn9//sbMUyeJthLGTix4E 5EBg9ujXs2FrYaM6OJ/dWD9cv+O2zITmbJQI4729mku8KDzFp32nRW4En8FHH9oYqgOT94lQFDdPx bMshun3BuLSgJxo4lqPRbq4ppyWo+D/SrIKSbswrTK3C2MR9I960YGHN6I3UD1UVq+ZCgLzhP7x/3 FLTlLJ2A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9wJF-009ZJO-63; Tue, 18 Jan 2022 21:46:33 +0000 Date: Tue, 18 Jan 2022 21:46:33 +0000 From: Matthew Wilcox To: Dave Hansen Cc: Khalid Aziz , akpm@linux-foundation.org, longpeng2@huawei.com, arnd@arndb.de, dave.hansen@linux.intel.com, david@redhat.com, rppt@kernel.org, surenb@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 0/6] Add support for shared PTEs across processes Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 01:41:40PM -0800, Dave Hansen wrote: > On 1/18/22 1:19 PM, Khalid Aziz wrote: > > - Starting address must be aligned to pgdir size (512GB on x86_64) > > How does this work on systems with 5-level paging where a top-level page > table entry covers 256TB? Is the alignment requirement 512GB or 256TB? > How does userspace figure out which alignment requirement it is subject to? The original idea was any power of two, naturally aligned, >= PAGE_SIZE, but I suspect Khalid has simplified it for this first implementation.