linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM64: Domain Equivalent support in ARMv8
Date: Thu, 12 Dec 2013 11:55:55 +0000	[thread overview]
Message-ID: <20131212115555.GA3382@arm.com> (raw)
In-Reply-To: <CAFpQJXVsuT2XU4F9FmQbqYm-82Qbs-yVCD+N+Qc7eY-z-h1NJQ@mail.gmail.com>

On Thu, Dec 12, 2013 at 07:48:19AM +0000, Ganapat Rao P Kulkarni wrote:
> On Tue, Dec 10, 2013 at 1:17 PM, Ganapat Rao P Kulkarni
> <gpkulkarni@gmail.com> wrote:
> > I want to make kernel code ( all sections/blocks mapped to kernel
> > code) as RO and change to R/W,  when ever hot-patch of kernel code is
> > required.
> > Also, R/W access changes should be available/visible to the core which
> > sets R/W and all other cores continue to have RO access.
> >
> > This was easily done using Domain feature(by making Kernel Domain as
> > Manager, using DACR) on ARMv7.
> > However, on ARMv8, i see there is no domain support(in AARCH64) and
> > not able to find the alternative optimal way.

Note that even on ARMv7, if you use LPAE domains are no longer
available.

So I'm not aware of any way other than creating a temporary mapping in a
per-CPU pgd. You could use a low address and TTBR0 so that it doesn't
interfere with the real kernel mapping.

-- 
Catalin

  reply	other threads:[~2013-12-12 11:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10  7:47 ARM64: Domain Equivalent support in ARMv8 Ganapat Rao P Kulkarni
2013-12-12  7:48 ` Ganapat Rao P Kulkarni
2013-12-12 11:55   ` Catalin Marinas [this message]
2013-12-12 13:12     ` Ganapat Rao P Kulkarni

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=20131212115555.GA3382@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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).