From: Hollis Blanchard <hollisb@us.ibm.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [RFC][PATCH] initial port of fixmap over from x86 for ppc32
Date: Thu, 3 Apr 2008 13:47:54 -0500 [thread overview]
Message-ID: <200804031347.54517.hollisb@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0804030144460.15974@blarg.am.freescale.net>
On Thursday 03 April 2008 01:52:36 Kumar Gala wrote:
> Wanted to get any feedback on this initial port of the fixmap support over
> from x86. There are a few TODOs:
>
> * change HIGHMEM support to use fixmap
> * fixup up VMALLOC config to respect fixmap
>
> (after initial powerpc patch is in tree/accepted):
> * rework a few bits of fixmap.h into an asm-generic/fixmap.h
>
> The reason for introducing fixmap into ppc32 is it provides us with a
> clean way of getting fixed compile time virtual addresses for things.
>
> Beyond the HIGHMEM usage. Ben and I have discussed cleaning up the PCIe
> 44x config code (and 83xx PCIe cfg) to use it. Also, Dale's kexec/kdump
> support on ppc32 can take advantage of it. I'm also told this is useful
> for hypervisor interactions.
>
> One question for the guys looking at hypervisor. The x86 code also has a
> function called reserve_top_address (see arch/x86/mm/pgtable_32.c). Is
> this functionality something useful on ppc? If so for what?
x86 virtualization implementations often needs a trampoline that's mapped into
both host and guest virtual address space, so that's part of what you're
seeing.
In general though, it can be very useful for the host to own a piece of the
guest's virtual address space. For example, the host could rewrite
problematic guest instructions to branch to host-optimized code which avoids
hypercalls. However, this is impossible unless the host knows it can
overwrite some portion of the guest's effective address space.
reserve_top_address() doesn't look complicated, so we might as well keep it?
--
Hollis Blanchard
IBM Linux Technology Center
next prev parent reply other threads:[~2008-04-03 18:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 6:52 [RFC][PATCH] initial port of fixmap over from x86 for ppc32 Kumar Gala
2008-04-03 18:47 ` Hollis Blanchard [this message]
2008-04-03 21:45 ` Benjamin Herrenschmidt
2008-04-06 23:48 ` Paul Mackerras
2008-04-07 0:43 ` Benjamin Herrenschmidt
2008-04-07 13:09 ` Kumar Gala
2008-04-07 16:20 ` Scott Wood
2008-04-07 21:36 ` Kumar Gala
2008-04-07 23:51 ` Benjamin Herrenschmidt
2008-04-08 14:28 ` Kumar Gala
2008-04-08 16:24 ` Scott Wood
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=200804031347.54517.hollisb@us.ibm.com \
--to=hollisb@us.ibm.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).