From: David Hildenbrand <david@redhat.com>
To: Christoph Hellwig <hch@infradead.org>,
Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Steven Price <steven.price@arm.com>,
Will Deacon <will@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Suren Baghdasaryan <surenb@google.com>,
Pratik Patel <pratikp@codeaurora.org>
Subject: Re: [RFC] depopulate_range_driver_managed() for removing page-table mappings for hot-added memory blocks
Date: Tue, 17 Nov 2020 15:58:49 +0100 [thread overview]
Message-ID: <f1ff619d-5190-1181-6514-41f0c69ffe54@redhat.com> (raw)
In-Reply-To: <20201114102853.GA8618@infradead.org>
On 14.11.20 11:28, Christoph Hellwig wrote:
> On Fri, Nov 13, 2020 at 06:41:22PM -0800, Sudarshan Rajagopalan wrote:
>>
>> Hello,
>>
>> When memory blocks are removed, along with removing the memmap entries,
>> memory resource and memory block devices, the arch specific
>> arch_remove_memory() is called which takes care of tearing down the
>> page-tables.
>>
>> Suppose there???s a usecase where the removed memory blocks will be added
>> back into the system at later point,
>
> Stop this crap. If you have a use case post the actual use here,
> including code and specs. If you don't have that don't waste peoples
> time on your pipe dream.
>
Adding to that, we (upstream people) are not interested in introducing
and maintaining kernel interfaces/infrastructure only relevant to
out-of-tree / proprietary drivers. If you're planning on upstreaming,
then please share the actual problem you are trying to solve and the
issues you see with the current interfaces/infrastructure, best along
with an RFC that shows the bigger picture.
Having that said, what you describe sounds more like a special kind of
allocation, whereby the linear mapping is removed, similar to [1].
[1] https://lkml.kernel.org/r/20201111145322.15793-1-david@redhat.com
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2020-11-17 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-14 2:41 Sudarshan Rajagopalan
2020-11-14 10:28 ` Christoph Hellwig
2020-11-17 14:58 ` David Hildenbrand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1ff619d-5190-1181-6514-41f0c69ffe54@redhat.com \
--to=david@redhat.com \
--cc=anshuman.khandual@arm.com \
--cc=catalin.marinas@arm.com \
--cc=hch@infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pratikp@codeaurora.org \
--cc=steven.price@arm.com \
--cc=sudaraja@codeaurora.org \
--cc=surenb@google.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®