From: David Hildenbrand <david@redhat.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Alexander Duyck <alexander.h.duyck@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
Anshuman Khandual <anshuman.khandual@arm.com>,
Dan Williams <dan.j.williams@intel.com>,
Mel Gorman <mgorman@techsingularity.net>,
Mike Rapoport <rppt@linux.ibm.com>,
Mike Rapoport <rppt@linux.vnet.ibm.com>,
Oscar Salvador <osalvador@suse.de>,
Pavel Tatashin <pasha.tatashin@soleen.com>,
Pavel Tatashin <pavel.tatashin@microsoft.com>,
Pingfan Liu <kernelfans@gmail.com>, Qian Cai <cai@lca.pw>,
Vlastimil Babka <vbabka@suse.cz>,
Wei Yang <richard.weiyang@gmail.com>
Subject: Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups
Date: Tue, 22 Oct 2019 11:27:18 +0200 [thread overview]
Message-ID: <8f5a1d58-6b1a-eef3-b482-ff113425fa65@redhat.com> (raw)
In-Reply-To: <20191022092454.GI9379@dhcp22.suse.cz>
On 22.10.19 11:24, Michal Hocko wrote:
> On Tue 22-10-19 11:17:24, David Hildenbrand wrote:
>> On 22.10.19 11:14, Michal Hocko wrote:
>>> On Tue 22-10-19 10:32:11, David Hildenbrand wrote:
>>> [...]
>>>> E.g., arch/x86/kvm/mmu.c:kvm_is_mmio_pfn()
>>>
>>> Thanks for these references. I am not really familiar with kvm so I
>>> cannot really comment on the specific code but I am wondering why
>>> it simply doesn't check for ZONE_DEVICE explicitly? Also we do care
>>> about holes in RAM (from the early boot), those should be reserved
>>> already AFAIR. So we are left with hotplugged memory with holes and
>>> I am not really sure we should bother with this until there is a clear
>>> usecase in sight.
>>
>> Well, checking for ZONE_DEVICE is only possible if you have an initialized
>> memmap. And that is not guaranteed when you start mapping random stuff into
>> your guest via /dev/mem.
>
> Yes, I can understand that part but checking PageReserved on an
> uninitialized memmap is pointless as well. So if you can test for it you
That's why I add pfn_to_online_page() :)
> can very well test for ZONE_DEVICE as well. PageReserved -> ZONE_DEVICE
> is a terrible assumption.
Indeed, it is. But there are more parts in the kernel that I'll be
fixing. Stay tuned.
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2019-10-22 9:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-21 17:23 [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups David Hildenbrand
2019-10-21 17:23 ` [PATCH v2 1/2] mm/page_alloc.c: Don't set pages PageReserved() when offlining David Hildenbrand
2019-10-21 17:23 ` [PATCH v2 2/2] mm/page_isolation.c: Convert SKIP_HWPOISON to MEMORY_OFFLINE David Hildenbrand
2019-10-22 6:52 ` [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups David Hildenbrand
2019-10-22 8:08 ` Michal Hocko
2019-10-22 8:15 ` David Hildenbrand
2019-10-22 8:21 ` Michal Hocko
2019-10-22 8:32 ` David Hildenbrand
2019-10-22 8:38 ` David Hildenbrand
2019-10-22 9:14 ` Michal Hocko
2019-10-22 9:17 ` David Hildenbrand
2019-10-22 9:24 ` Michal Hocko
2019-10-22 9:27 ` 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=8f5a1d58-6b1a-eef3-b482-ff113425fa65@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.h.duyck@linux.intel.com \
--cc=anshuman.khandual@arm.com \
--cc=cai@lca.pw \
--cc=dan.j.williams@intel.com \
--cc=kernelfans@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@kernel.org \
--cc=osalvador@suse.de \
--cc=pasha.tatashin@soleen.com \
--cc=pavel.tatashin@microsoft.com \
--cc=richard.weiyang@gmail.com \
--cc=rppt@linux.ibm.com \
--cc=rppt@linux.vnet.ibm.com \
--cc=vbabka@suse.cz \
/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;
as well as URLs for NNTP newsgroup(s).