From: Dave McCracken <dcm@mccr.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
Xen Developers List <xen-devel@lists.xensource.com>
Subject: Hugepages don't work on the Xen Linux git tree
Date: Mon, 19 Apr 2010 21:27:29 -0500 [thread overview]
Message-ID: <201004192127.29270.dcm@mccr.org> (raw)
I hadn't actually tested mainline Linux or the Xen Linux git tree in awhile,
since we're focusing on RedHat released versions. When I actually tried to
use it today it fell over dead as soon as I tried to map a hugepage.
The current method for mapping hugepages does not work at all with Xen. We
have set_huge_pte_at() in arch/x86/include/asm/hugetlb.h which does a
set_pte_at(), but passes it a pmd pointer and a pmd entry. This will succeed
on a native Linux kernel, but after passing through the paravirt vector to
xen_set_pte_at(), it fails miserably. It expects
HYPERVISOR_update_va_mapping() to do the right thing and it doesn't.
The fix I have in older kernels is for set_huge_pte_at() to call set_pmd()
instead. However, in this brave new world of paravirt vectors, should I
instead set up a vector for it? What is the architecturally right thing to
do? However we decide to do it, expect a patch for it shortly afterward.
Thanks,
Dave McCracken
next reply other threads:[~2010-04-20 2:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 2:27 Dave McCracken [this message]
2010-04-20 18:17 ` Hugepages don't work on the Xen Linux git tree Jeremy Fitzhardinge
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=201004192127.29270.dcm@mccr.org \
--to=dcm@mccr.org \
--cc=jeremy@goop.org \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.