Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2686609imi; Mon, 25 Jul 2022 05:40:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vIMEzjAqtQE/tAFUFosSoDXecN680r4NMQ3E4qlNEyWuLmpeAm9K271Z2NmvWKu5/x6q3D X-Received: by 2002:a05:6402:1e95:b0:437:ce7f:e17a with SMTP id f21-20020a0564021e9500b00437ce7fe17amr12728474edf.169.1658752796661; Mon, 25 Jul 2022 05:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658752796; cv=none; d=google.com; s=arc-20160816; b=I80T3yMrUUWW1F2237UnxqsGapYIeeDiwqS5doT7JEksLIUhopGbW0ES/dULxv+lWf 9820hSR8eAOBkx/hhd1gTAwJKsumXxe/hNzGbEQVXCD60L9FwsZ575I14RVShZ9K9Lx/ i9Lpy5CxSy3TkzQZfHFLYbbkqBpYaN2ioL1PZ4Lu7lyOuPmP3EpUl9OyGzH/3vvYbyJz upNMigb2lo6EQ5U7dMJHZXUVK3jmrZIe8AcIg1ByMt8lfuwMK4twg0if3glwvNU8LrX3 cITQklIyfLtd/sQu93VULHK8n/q3oRLmCgRteWCAZbyS+SjmoVMk0f8+UGa9qk5FT7VF Oh0A== 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=Sn5hmQQVaS9IivV+qbBQot02DE7Tn3rjLFedQjB87Z8=; b=TL6nQQyJU1PYdVKWWhloscLB21jHLJXevULaX6UWya8OqJl0OCLdHX9AtBD6YvWgv1 eeQpkRgBgP+ndfANTeD9sgFT3QzVglHs50G9PluBRrE2UUibVh4MQGcOk2LWRl2jWNV/ ZgLCN5NvOoAVBRnvSBdcfJUnCEjfNHWaaSqdufaoO9O7dCI/0fXyfAS7LXeo9Q5kRmlU 8BG/Ltr/0jiLxJ21jCvK5FMrG2ZVReRiA8u635pNWxeGHxkQvfLo/2LXX0yC3Lw3mIih BtzVhUNAKr6LP4bNaG7AeBmrhlDrxKm+u6xNzi5brDSGA93K7TfdvfGHNYTzDCKIu/F/ FCpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=YSaLt6rM; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a056402500b00b0043bc865fcc2si7246389eda.184.2022.07.25.05.39.27; Mon, 25 Jul 2022 05:39:56 -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=@alien8.de header.s=dkim header.b=YSaLt6rM; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234814AbiGYMXc (ORCPT + 99 others); Mon, 25 Jul 2022 08:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbiGYMXa (ORCPT ); Mon, 25 Jul 2022 08:23:30 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6612B12A97; Mon, 25 Jul 2022 05:23:29 -0700 (PDT) Received: from zn.tnic (p200300ea972976f8329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:76f8:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id EE7341EC0646; Mon, 25 Jul 2022 14:23:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658751804; 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:in-reply-to:in-reply-to: references:references; bh=Sn5hmQQVaS9IivV+qbBQot02DE7Tn3rjLFedQjB87Z8=; b=YSaLt6rMmx//TZ9X4tE5W2zr6O5WXLi/77suixSs0FK1W3MtTiHr4HGB++dUuUruuskSyE hguBTrv+vOf/SXueqGd6fzgOc9nzLCrUwg5m5drkiVP6EgsqV6kYJL3nE0hUWrrOlHMpRG yOpRsGwmx+YWM5mWRadfubTwOQ2IdZs= Date: Mon, 25 Jul 2022 14:23:20 +0200 From: Borislav Petkov To: Dave Hansen Cc: "Kirill A. Shutemov" , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCHv7 02/14] mm: Add support for unaccepted memory Message-ID: References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-3-kirill.shutemov@linux.intel.com> <707ca113-c2a2-8fe2-a22c-5be13adc7bb4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <707ca113-c2a2-8fe2-a22c-5be13adc7bb4@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Fri, Jul 22, 2022 at 12:30:36PM -0700, Dave Hansen wrote: > Sure does... *Something* has to manage the cache coherency so that old > physical aliases of the converted memory don't write back and clobber > new data. But, maybe the hardware is doing that now. Let's hope. > Yeah, that two-tier system is the way it's happening today from what > I understand. This whole conversation is about how to handle the >4GB > memory. Would it be possible to pre-accept a bunch of mem - think "pre-fault" - from userspace? I.e., I'm thinking some huge process is going to start in the VM, VM userspace goes and causes a chunk of memory to be pre-accepted and then the process starts and runs more-or-less smoothly as the majority of its memory has already been "prepared". Or does that not make any sense from mm perspective? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette