From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 07/23] Add SLB switching code for entry/exit
Date: Wed, 08 Jul 2009 07:43:40 +0000 [thread overview]
Message-ID: <1247039020.6066.153.camel@pasglop> (raw)
In-Reply-To: <1246976262-4826-8-git-send-email-agraf@suse.de>
On Wed, 2009-07-08 at 09:23 +0200, Alexander Graf wrote:
> Well, the problem is that we can't have two ESIDs for the same EA in
> the SLB. So what I tried was to have guest ESIDs and host ESIDs
> (PAGE_OFFSET+) live in the same SLB by removing the most significant
> bit of the guest ESID.
I'll reply to that later when I understand what you are doing better.
> Yikes. So pHyp restores SLB entries from a shadow? Sounds like I need
> to mess with that one too :-(.
Right.
> I'm not really fond of all the SLB switching code in general. Best
> case would probably be to have a host and guest shadow SLB in the RMA
> that the real mode code can take to switch the _full_ SLB.
>
> That way we'd also get rid of the CONTEXT_GUEST stuff in the kernel
> module, where we are in Linux, but have guest SLB entries active
> already.
Same comment as above :-) I'm sure together we can come up with
something quite optimal but I need to catch up a bit first :-)
> Any reason it doesn't work on Power3? :-). It definitely does not work
> on iSeries, though the code could be made to work there FWIW.
On Power3 you'd have to implement STAB support instead of SLB (get
yourself a PowerPC Book3 pre-2.0 if that's available publically and you
are masochist :-)
On legacy iSeries, it's harder, you don't have access to real mode and
the hypervisor is more invasive. I wouldn't bother with these. Any
recent iSeries (POWER5 or later) uses pHyp and so shouldn't be a
problem.
Cheers
Ben.
next prev parent reply other threads:[~2009-07-08 7:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 14:17 [PATCH 07/23] Add SLB switching code for entry/exit Alexander Graf
2009-07-08 4:38 ` Benjamin Herrenschmidt
2009-07-08 7:23 ` Alexander Graf
2009-07-08 7:43 ` Benjamin Herrenschmidt [this message]
2009-07-16 13:30 ` Alexander Graf
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=1247039020.6066.153.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=kvm-ppc@vger.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 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.