From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@ozlabs.org
Cc: aneesh.kumar@linux.vnet.ibm.com, npiggin@gmail.com
Subject: Re: [1/6] powerpc/64s/hash: Convert SLB miss handlers to C
Date: Mon, 15 Oct 2018 15:01:14 +1100 (AEDT) [thread overview]
Message-ID: <42YPrB3CMKzB2xZ@ozlabs.org> (raw)
In-Reply-To: <20181013131836.26764-1-mpe@ellerman.id.au>
On Sat, 2018-10-13 at 13:18:31 UTC, Michael Ellerman wrote:
> From: Nicholas Piggin <npiggin@gmail.com>
>
> This patch moves SLB miss handlers completely to C, using the standard
> exception handler macros to set up the stack and branch to C.
>
> This can be done because the segment containing the kernel stack is
> always bolted, so accessing it with relocation on will not cause an
> SLB exception.
>
> Arbitrary kernel memory must not be accessed when handling kernel
> space SLB misses, so care should be taken there. However user SLB
> misses can access any kernel memory, which can be used to move some
> fields out of the paca (in later patches).
>
> User SLB misses could quite easily reconcile IRQs and set up a first
> class kernel environment and exit via ret_from_except, however that
> doesn't seem to be necessary at the moment, so we only do that if a
> bad fault is encountered.
>
> [ Credit to Aneesh for bug fixes, error checks, and improvements to
> bad address handling, etc ]
>
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> [mpe: Disallow tracing for all of slb.c for now.]
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Series applied to powerpc next.
https://git.kernel.org/powerpc/c/48e7b76957457f9a6f086ca2bbe49e
cheers
prev parent reply other threads:[~2018-10-15 4:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-13 13:18 [PATCH 1/6] powerpc/64s/hash: Convert SLB miss handlers to C Michael Ellerman
2018-10-13 13:18 ` [PATCH 2/6] powerpc/64s/hash: Add SLB allocation status bitmaps Michael Ellerman
2018-10-13 13:18 ` [PATCH 3/6] powerpc/64s/hash: Provide arch_setup_exec() hooks for hash slice setup Michael Ellerman
2018-10-13 13:18 ` [PATCH 4/6] powerpc/64s/hash: Add a SLB preload cache Michael Ellerman
2018-10-13 13:18 ` [PATCH 5/6] powerpc/64s/hash: Simplify slb_flush_and_rebolt() Michael Ellerman
2018-10-13 13:18 ` [PATCH 6/6] powerpc/64s/hash: Add some SLB debugging tests Michael Ellerman
2018-10-15 4:01 ` Michael Ellerman [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=42YPrB3CMKzB2xZ@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.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).