From: Pavel Tatashin <pasha.tatashin@oracle.com>
To: steven.sistare@oracle.com, daniel.m.jordan@oracle.com,
pasha.tatashin@oracle.com, jgross@suse.com, akataria@vmware.com,
tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
x86@kernel.org, boris.ostrovsky@oracle.com,
akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz,
luto@kernel.org, labbott@redhat.com,
kirill.shutemov@linux.intel.com, bp@suse.de,
minipli@googlemail.com, jinb.park7@gmail.com,
dan.j.williams@intel.com, bhe@redhat.com,
zhang.jia@linux.alibaba.com, mgorman@techsingularity.net,
hannes@cmpxchg.org, virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org,
linux-mm@kvack.org
Subject: [v2 0/1] Allow deferred page initialization for xen pv domains
Date: Mon, 26 Feb 2018 11:01:11 -0500 [thread overview]
Message-ID: <20180226160112.24724-1-pasha.tatashin@oracle.com> (raw)
Changelog
v1 - v2
- Addressed coomment from Juergen Gross: fixed a comment, and moved
after_bootmem from PV framework to x86_init.hyper.
>From this discussion:
https://www.spinics.net/lists/linux-mm/msg145604.html
I investigated whether it is feasible to re-enable deferred page
initialization on xen's para-vitalized domains. After studying the
code, I found non-intrusive way to do just that.
All we need to do is to assume that page-table's pages are pinned early in
boot, which is always true, and add a new x86_init.hyper OP call to notify
guests that boot allocator is finished, so we can set all the necessary
fields in already initialized struct pages.
I have tested this on my laptop with 64-bit kernel, but I would appreciate
if someone could provide more xen testing.
Apply against: linux-next. Enable the following configs:
CONFIG_XEN_PV=y
CONFIG_DEFERRED_STRUCT_PAGE_INIT=y
The above two are needed to test deferred page initialization on PV Xen
domains. If fix is applied correctly, dmesg should output line(s) like this
during boot:
[ 0.266180] node 0 initialised, 717570 pages in 36ms
CONFIG_DEBUG_VM=y
This is needed to poison struct page's memory, otherwise it would be all
zero.
CONFIG_DEBUG_VM_PGFLAGS=y
Verifies that we do not access struct pages flags while memory is still
poisoned (struct pages are not initialized yet).
Pavel Tatashin (1):
xen, mm: Allow deferred page initialization for xen pv domains
arch/x86/include/asm/x86_init.h | 2 ++
arch/x86/kernel/x86_init.c | 1 +
arch/x86/mm/init_32.c | 1 +
arch/x86/mm/init_64.c | 1 +
arch/x86/xen/mmu_pv.c | 38 ++++++++++++++++++++++++++------------
mm/page_alloc.c | 4 ----
6 files changed, 31 insertions(+), 16 deletions(-)
--
2.16.2
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2018-02-26 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 16:01 Pavel Tatashin [this message]
2018-02-26 16:01 ` [v2 1/1] xen, mm: Allow deferred page initialization for xen pv domains Pavel Tatashin
2018-02-27 6:59 ` Ingo Molnar
2018-02-27 7:44 ` Juergen Gross
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=20180226160112.24724-1-pasha.tatashin@oracle.com \
--to=pasha.tatashin@oracle.com \
--cc=akataria@vmware.com \
--cc=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@suse.de \
--cc=dan.j.williams@intel.com \
--cc=daniel.m.jordan@oracle.com \
--cc=hannes@cmpxchg.org \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=jinb.park7@gmail.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=labbott@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@kernel.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=minipli@googlemail.com \
--cc=steven.sistare@oracle.com \
--cc=tglx@linutronix.de \
--cc=vbabka@suse.cz \
--cc=virtualization@lists.linux-foundation.org \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
--cc=zhang.jia@linux.alibaba.com \
/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).