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 X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2FD7C43460 for ; Thu, 15 Apr 2021 09:30:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99CD5610CE for ; Thu, 15 Apr 2021 09:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbhDOJam (ORCPT ); Thu, 15 Apr 2021 05:30:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32818 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbhDOJaj (ORCPT ); Thu, 15 Apr 2021 05:30:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618479016; 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=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=Yw2DfK9B+OXWM/rqVDGaXRaRMKEk2pg0ChNAqZ10dMqWVZD39Ix2sMrA1w5W/gPaHq67Pf GxP7oWhimamBqeSTL8pYqS+Fs6837Kl1U1V2SVYyARgVG6VS/FadHjN29L8lYrXsH54/gd RXnCsOlDRu6rbp5fynQYegOeMxPDVWM= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-9ig1RjmSPvWzGjOcEVIztQ-1; Thu, 15 Apr 2021 05:30:14 -0400 X-MC-Unique: 9ig1RjmSPvWzGjOcEVIztQ-1 Received: by mail-wm1-f72.google.com with SMTP id b20-20020a7bc2540000b029010f7732a35fso1998570wmj.1 for ; Thu, 15 Apr 2021 02:30:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=stAE9j7xtOjkytdZO/CmIJcnNoHQqeoToy5jiB7L7xRB4vIxseupCBK8+2wWw2PyQg GiSmQ3O50yNtKpl2FFF4Loa5sHtRHJX52hXJNSWOGMDkXX5ezQYSiMVawJoS4urJhibo a4ZxOlKthxRZOaVV8O/0CanmfqqRcNrZjDJr7DcE20MHi3sZ+Am6I78q0MDkehAEstNl 71bFW8lbjAYtOvhqOFahRymQvMo9qL07zuDoYrELX2j0zpF9uhPF5/X2eLI1+d1z8WEd D4r6pAAlQ6Mn/tRi+6VC1yMs0J0NnDkEC/0PGARWvYeAWVdGEkbg9rucf+b3+NtNZ3pl z6AQ== X-Gm-Message-State: AOAM531kCwwEjBaui7EXZdX48B99nwo/DQtU8YMxfLsLzq7I6DKnOkw+ sXWM3nv81vgSUIL84ahPqpSzNcz9NpERcG7+vn0h6v/O6w+8tqZCUltfHiNmwdi4NvO4es00ecD o9batErjjb/oEuz+C65CeRuI/ X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472819wru.92.1618479013330; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8b0HIW4SQWI0F4SN4CcB7oMoecgIFl/eiaSw1ft7FPToZP8/z36BeeQADlUaxJ82PzDz6Hg== X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472795wru.92.1618479013135; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6392.dip0.t-ipconnect.de. [91.12.99.146]) by smtp.gmail.com with ESMTPSA id p17sm1659280wmq.47.2021.04.15.02.30.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 02:30:12 -0700 (PDT) Subject: Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages To: Mike Rapoport Cc: Ard Biesheuvel , Linux ARM , Anshuman Khandual , Catalin Marinas , Marc Zyngier , Mark Rutland , Mike Rapoport , Will Deacon , kvmarm , Linux Kernel Mailing List , Linux Memory Management List References: <20210407172607.8812-1-rppt@kernel.org> <20210407172607.8812-2-rppt@kernel.org> <0c48f98c-7454-1458-15a5-cc5a7e1fb7cd@redhat.com> <3811547a-9057-3c80-3805-2e658488ac99@redhat.com> From: David Hildenbrand Organization: Red Hat Message-ID: Date: Thu, 15 Apr 2021 11:30:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Not sure we really need a new pagetype here, PG_Reserved seems to be quite > enough to say "don't touch this". I generally agree that we could make > PG_Reserved a PageType and then have several sub-types for reserved memory. > This definitely will add clarity but I'm not sure that this justifies > amount of churn and effort required to audit uses of PageResrved(). > >> Then, we could mostly avoid having to query memblock at runtime to figure >> out that this is special memory. This would obviously be an extension to >> this series. Just a thought. > > Stop pushing memblock out of kernel! ;-) Can't stop. Won't stop. :D It's lovely for booting up a kernel until we have other data-structures in place ;) -- Thanks, David / dhildenb 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 X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91EC4C433ED for ; Thu, 15 Apr 2021 09:30:25 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id E68D461222 for ; Thu, 15 Apr 2021 09:30:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E68D461222 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6E3B34B63C; Thu, 15 Apr 2021 05:30:24 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@redhat.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sLBhhaASBHYa; Thu, 15 Apr 2021 05:30:23 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 57D1C4B646; Thu, 15 Apr 2021 05:30:23 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 293774B626 for ; Thu, 15 Apr 2021 05:30:22 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W1KQzW7ifKtq for ; Thu, 15 Apr 2021 05:30:18 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B0DDF4B455 for ; Thu, 15 Apr 2021 05:30:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618479018; 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=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=VVIZREslz8VzRQq7MhrD1H6qoFA1+3UgOAU+aCmpMmjV0bdEhP8Yt9oSaMDi2NxS1evinQ x8bLztxrduY7G4cxC57MM3U8rAe7ARqBz+CAhLT4xpeLJT0uOYIP/Ndrt2ak0d0YfrJ9MX c3MugtSjGncvX718ac8PouQhCVC03Ng= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-kvJGFWpLPmW0drWNojwAjg-1; Thu, 15 Apr 2021 05:30:14 -0400 X-MC-Unique: kvJGFWpLPmW0drWNojwAjg-1 Received: by mail-wm1-f69.google.com with SMTP id x20-20020a7bc2140000b029012bb4d2b5d6so2683330wmi.1 for ; Thu, 15 Apr 2021 02:30:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=jYaulIJxxJJ1pv1DEHPK++z9bSov5gMdePmCXlQTqricEBvOvIvuGfK4/Lh0U/xPrr BI6kpk3YgpcSGvoHrir87t2wXK3O2L/L5oKjzbNMu7LhE6MXIUi6/5t9ZtOCE7CWqMwK 3/uqlpqFE6nuj2+fWfS5upmIRrybxFm21zBVnW8sl3YYIMWX8dxywGw42Qj39WYU8n6G yUQ9Y8xHsUkUxQcEwk3VXiEYqpyNamsMwFiUqH+UB0Ejyb1iNid0m5qqQiNFEzzvh143 MN/ne/+9IJrz9jMvuYNUy544Nj+eMtBwvu4RmsT3+hifNXY8pdptzg+PmrVnJH4gebVz p8IA== X-Gm-Message-State: AOAM531xmFHOE8k9oIJZVopeQ9B82XMP2kqSfQAaImkq6tGaA2hVEUqW 1fARPphgMSblfYIHJH04E62sRbGKS1W14zET4HyxIZZHwwwVEW+Fg8M6Mzcw05rvAogTrzrSRjM a/Hzh0NjKBaxdqMOx1jPbCKVR X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472825wru.92.1618479013339; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8b0HIW4SQWI0F4SN4CcB7oMoecgIFl/eiaSw1ft7FPToZP8/z36BeeQADlUaxJ82PzDz6Hg== X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472795wru.92.1618479013135; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6392.dip0.t-ipconnect.de. [91.12.99.146]) by smtp.gmail.com with ESMTPSA id p17sm1659280wmq.47.2021.04.15.02.30.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 02:30:12 -0700 (PDT) Subject: Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages To: Mike Rapoport References: <20210407172607.8812-1-rppt@kernel.org> <20210407172607.8812-2-rppt@kernel.org> <0c48f98c-7454-1458-15a5-cc5a7e1fb7cd@redhat.com> <3811547a-9057-3c80-3805-2e658488ac99@redhat.com> From: David Hildenbrand Organization: Red Hat Message-ID: Date: Thu, 15 Apr 2021 11:30:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Cc: Anshuman Khandual , Catalin Marinas , Linux Kernel Mailing List , Mike Rapoport , Linux Memory Management List , kvmarm , Marc Zyngier , Will Deacon , Linux ARM X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu > Not sure we really need a new pagetype here, PG_Reserved seems to be quite > enough to say "don't touch this". I generally agree that we could make > PG_Reserved a PageType and then have several sub-types for reserved memory. > This definitely will add clarity but I'm not sure that this justifies > amount of churn and effort required to audit uses of PageResrved(). > >> Then, we could mostly avoid having to query memblock at runtime to figure >> out that this is special memory. This would obviously be an extension to >> this series. Just a thought. > > Stop pushing memblock out of kernel! ;-) Can't stop. Won't stop. :D It's lovely for booting up a kernel until we have other data-structures in place ;) -- Thanks, David / dhildenb _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B68BC433ED for ; Thu, 15 Apr 2021 09:32:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0D6361153 for ; Thu, 15 Apr 2021 09:32:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0D6361153 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vlSnCMhMBOTHydUkU4liVQsLgYfN5igOdO3OCJMfDAc=; b=UKYoW9aX9sIXrBtq7CRKhzdZT r5g1l+0UE1xEQLoHqNBExqCeeyW4SDHc0qsrqWGLdVlhzgDxAwQka76OTtjh0LM8fVQE1Y2gic6ZK cgk9Z1jLMp4MHZANbEut+407rMUUtjJm/r9IxuYzzAvtYSTxIJnoQ64C3CdonOFK0ruzCi2lMgYfh 2OB/rmWSbDkUkus/ieHjfD971IkZzcgkAoV0l/q7XkuyOt90j65WPIWw4P5PcgaQqlLsah57XlNll Ggu46sIGPXy6trniLc1qF1tNSBqs+8RMu0Q2Kt6J1Nqg9gKBvwm6aQStU7bs7mu/QDdLFFFOU6YYI ac6tzPQGg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWyKN-00FWXO-9I; Thu, 15 Apr 2021 09:30:25 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWyKK-00FWWY-7q for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 09:30:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=CC3lvUZWXd3jk6DaUAiGSnwth7 5dRYv0/d7hTKgVA3ReY/P8t6UheN7QBAJDi10+VEEjLIyX+FS0ruoMtx0+tt240yUBq0a/DAn8rmY Xr1yNMvDuB3hO2P8zXSPMa5wGlccDbkHP0OTMxCtqRBbJXcefauahXXldLAB96ZGccH2e/JUbzVvQ oKjyv0kITv+2i6ZDp9McbUcN4qbEEai9r0tKVbBEgW4aqDyNdpEmIjrxxHSJYdBAVE0ckwLDSy0ag QmeqnVh96opiIMjYx8d15tQhB5bf+yMkzU3TJvIAMdL+QmNafd2eeU+slulDJfivss4SPJvjFtjCB pqxtHesQ==; Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWyKH-008QOd-P1 for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 09:30:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618479016; 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=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=Yw2DfK9B+OXWM/rqVDGaXRaRMKEk2pg0ChNAqZ10dMqWVZD39Ix2sMrA1w5W/gPaHq67Pf GxP7oWhimamBqeSTL8pYqS+Fs6837Kl1U1V2SVYyARgVG6VS/FadHjN29L8lYrXsH54/gd RXnCsOlDRu6rbp5fynQYegOeMxPDVWM= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-528-kbMU8N9QPHufR9CpqJd_Jw-1; Thu, 15 Apr 2021 05:30:14 -0400 X-MC-Unique: kbMU8N9QPHufR9CpqJd_Jw-1 Received: by mail-wm1-f70.google.com with SMTP id z135-20020a1c7e8d0000b02901297f50f20dso2000939wmc.0 for ; Thu, 15 Apr 2021 02:30:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MW/mRgvf+zkYoiSHfMZp2dDTVVI25+tYOHvOtleD70I=; b=KcemfnrwKI7yNiipZjrOhUB4jXNo09sExkqGM2y0GRU2qkfkzNk+I68+x5lyoKLCyC y2B8VJfmSU2Izi9DOb22nNsSJDcJeD+eJB8BvbDUFuunPVSsZwUFLjIvVUos2HS9PpfZ CY7tEmajXERkzCH3kFBktAWxVi3DaEY1QNdSRenHOEOn4NPY439G+RVgFEIygGqXM0Vh wtp8KaGNGgZwhDOHQXO3/CY+lvdj1fNNQ/r4ecTivV0qw3XU6u/ukWN89OMCOSvDWp61 FxbblFW7tkawu6Pk6FUcd/asaotJknmFGFaSjk9wijqUf5t8yRRpbVocE07aNdPRYBCb QkQA== X-Gm-Message-State: AOAM533+byIRI2NgC+WcblzZk01oGadsKp2qe9mn/QGt834WbQb0Gj6y vm1IJb3zTfphrGBV0LuPHp0viRTpFigOYMPStpfFv9cpnqIwTdxPGIcv1bwGOCkGVCtfDBQfpAw TGzCCgJhsabNje+iCWO15mjvye655ZWyKjRY= X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472820wru.92.1618479013330; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8b0HIW4SQWI0F4SN4CcB7oMoecgIFl/eiaSw1ft7FPToZP8/z36BeeQADlUaxJ82PzDz6Hg== X-Received: by 2002:a5d:6a84:: with SMTP id s4mr2472795wru.92.1618479013135; Thu, 15 Apr 2021 02:30:13 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6392.dip0.t-ipconnect.de. [91.12.99.146]) by smtp.gmail.com with ESMTPSA id p17sm1659280wmq.47.2021.04.15.02.30.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 02:30:12 -0700 (PDT) Subject: Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages To: Mike Rapoport Cc: Ard Biesheuvel , Linux ARM , Anshuman Khandual , Catalin Marinas , Marc Zyngier , Mark Rutland , Mike Rapoport , Will Deacon , kvmarm , Linux Kernel Mailing List , Linux Memory Management List References: <20210407172607.8812-1-rppt@kernel.org> <20210407172607.8812-2-rppt@kernel.org> <0c48f98c-7454-1458-15a5-cc5a7e1fb7cd@redhat.com> <3811547a-9057-3c80-3805-2e658488ac99@redhat.com> From: David Hildenbrand Organization: Red Hat Message-ID: Date: Thu, 15 Apr 2021 11:30:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_023017_915103_451E4D68 X-CRM114-Status: GOOD ( 15.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > Not sure we really need a new pagetype here, PG_Reserved seems to be quite > enough to say "don't touch this". I generally agree that we could make > PG_Reserved a PageType and then have several sub-types for reserved memory. > This definitely will add clarity but I'm not sure that this justifies > amount of churn and effort required to audit uses of PageResrved(). > >> Then, we could mostly avoid having to query memblock at runtime to figure >> out that this is special memory. This would obviously be an extension to >> this series. Just a thought. > > Stop pushing memblock out of kernel! ;-) Can't stop. Won't stop. :D It's lovely for booting up a kernel until we have other data-structures in place ;) -- Thanks, David / dhildenb _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel