Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp721447imn; Tue, 26 Jul 2022 07:37:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUbQZmiaDyS9jaySVbFTGTC5RPabA4Ob5AJLqWTMAxvgSPBRvIaYy98rFwazMnq2w4tMFd X-Received: by 2002:a17:90b:3148:b0:1f2:4651:255c with SMTP id ip8-20020a17090b314800b001f24651255cmr24792853pjb.18.1658846274490; Tue, 26 Jul 2022 07:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658846274; cv=none; d=google.com; s=arc-20160816; b=aXaIfOobpFyXto24ZYX7Nrt2F0Vx34pY8GIZxgyam9lemAgET96U4j5s8S9rh+srDf 5urFyOc8kXfEhHJshLuJR65ZB2gUgemb4kO5ePFZqjbkdUJeCS2LMMT6C4wfS3bK7SDJ dtSM7oQNv4+LjycpeROzUlQ2Dy3POWhsZ7Q3MpU7TdIujaKx8x2TyC8g/Rcdt9L+gaAv 9izpRkWt4s2yeE6emNkyzJYL9KRo0TZnsgkBcs2Ln9wxnlN97Bu8CcoyTEwYe/+i8Hnk 4IMteT/x74YYQzjK1Oe9nlpJU4Or797vDZkzqfRqF0GJWWm/Yd6hKLHzknA+RM+e1fxG UVYw== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=gr7dw0e3vkHCOc9kW8UEU5CieYdDfZtmZu7Qeg3pxlU=; b=lM7t/qj0+ThOaWQ/QX53f2GglCnAbxLO0L1qUHZI7LvAliSom5wkxulm93DTHzlOdK N5jbpuIVwv56HuAZUikpNZX6A61LsVnk9AySrAq9ZR94uuzlUABXRWos8qm2oRhskczt QqcaFRA599+RlrLNECLJ2qyMkQlI4eULqwrfvHk3XbWXqnAtcrJIOPci+7f4Do6g7bhj k59lA7O14v/SYLwsGb+C9MJkgV0C5gPknVvz3Y6ZZ3qySyd7yL2CKdjY6Pn9D+5FpHGg VuU+mMTOcUBN26fVsBnU1s5CG5Bh1TdvocgTu5AgEG0rxmQRDWX/SbEp6cUawDqIldTs 0/ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BBk8rmoJ; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020a63b21a000000b004126d5fa836si19256570pge.182.2022.07.26.07.37.38; Tue, 26 Jul 2022 07:37:54 -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=@redhat.com header.s=mimecast20190719 header.b=BBk8rmoJ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239347AbiGZObJ (ORCPT + 99 others); Tue, 26 Jul 2022 10:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239345AbiGZObF (ORCPT ); Tue, 26 Jul 2022 10:31:05 -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 ESMTP id A0E58F02 for ; Tue, 26 Jul 2022 07:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658845862; 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; bh=gr7dw0e3vkHCOc9kW8UEU5CieYdDfZtmZu7Qeg3pxlU=; b=BBk8rmoJn5aEZXHyBZfx5S5d6hocf2+rg0Hg2wUwF/XLZv46NiOjkPW1Xo6nCMEPhhdw3E 6aAkvtz4Bmrb2q4lux2dMJiqP8Aal6TFxJ7hXZRl5DJxPKYB2ayBZrJlvrPwCrgP7RXwUH oHfKn6GkKB5KbBe0uYeoSuH6f4lEsa0= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-348-Ha49n7cHNvCfpecrolDu8Q-1; Tue, 26 Jul 2022 10:30:59 -0400 X-MC-Unique: Ha49n7cHNvCfpecrolDu8Q-1 Received: by mail-wr1-f69.google.com with SMTP id d13-20020adfa34d000000b0021e3c8834a3so2182124wrb.10 for ; Tue, 26 Jul 2022 07:30:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=gr7dw0e3vkHCOc9kW8UEU5CieYdDfZtmZu7Qeg3pxlU=; b=uLjuSk6NYQ7IqszjNiWeWh6nDGOwJgAzHA+I+OSsQ/izlR9+N4nMiF8acG9NCYA6ZG Ad1wnnu564aq5MWmFAEdK3f6NvV9UkJyMMSKH2eBy5u/GpuoAMgg1vbn5Sym8G5Xql+9 OXKF7q8XAhgCqrhM/bESXTi+RKOxEX9M2YHCQ98pWfIPIfzc/4FrcQw1SFNXEQzMSmXE CJvFlOC4R6sV7cxMVSNoXh3PvmcK2zIW4exkMjtcYYq4G+8bZE8TyFDKEF9MYL6pY4oN y9jrUujdQRYPBLhMr3B3ASrTVcUWiNBBV+sjKwtwNpim4banEQ9k6Oc4jINOnYFkrTVw UMDQ== X-Gm-Message-State: AJIora9j25tPOoJfx/9lC1oPLd2rVbBp9WoqN/pd1KUMUzHzs8S9NzTw eF8xtGyhi4c32lRkYOGNF+rMMkmbywEBjKYVVGPMk/pmWa35lRS7IAemowG8MNbjYyjBnbbaRhm Ej37ms497jLb3eiUfxmWxbblu X-Received: by 2002:a7b:c3cc:0:b0:3a3:8ec:d69 with SMTP id t12-20020a7bc3cc000000b003a308ec0d69mr25694585wmj.78.1658845857805; Tue, 26 Jul 2022 07:30:57 -0700 (PDT) X-Received: by 2002:a7b:c3cc:0:b0:3a3:8ec:d69 with SMTP id t12-20020a7bc3cc000000b003a308ec0d69mr25694552wmj.78.1658845857423; Tue, 26 Jul 2022 07:30:57 -0700 (PDT) Received: from ?IPV6:2003:cb:c708:fe00:8ba4:5871:abc3:8a75? (p200300cbc708fe008ba45871abc38a75.dip0.t-ipconnect.de. [2003:cb:c708:fe00:8ba4:5871:abc3:8a75]) by smtp.gmail.com with ESMTPSA id v11-20020adfe4cb000000b0021e6b62fde2sm10429441wrm.59.2022.07.26.07.30.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 07:30:57 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2022 16:30:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCHv7 02/14] mm: Add support for unaccepted memory Content-Language: en-US To: Borislav Petkov Cc: Dave Hansen , "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 , 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 References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-3-kirill.shutemov@linux.intel.com> <707ca113-c2a2-8fe2-a22c-5be13adc7bb4@intel.com> <7d664831-a78c-4a4f-5bd6-f0e04463ca7c@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 25.07.22 14:53, Borislav Petkov wrote: > On Mon, Jul 25, 2022 at 02:38:57PM +0200, David Hildenbrand wrote: >> The less core-MM code to handle unaccepted memory the better. Meaning, >> that any kind of additional pre-acceptance (in addition to what we have >> here) needs good justification. > > I actually mean to have a user interface to have the core code > pre-accept. I.e., interface to what will be already there anyway. > Ah, got it. The "issue" with ordinary prefaulting in user space is that you'll also end up zeroing the memory. But yeah, it should just accept a bunch of memory. > Or is that frowned upon too? I was assuming you'd want some additional interface that only accept memory without actually temporarily allocating it. -- Thanks, David / dhildenb