linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ARM64: Domain Equivalent support in ARMv8
@ 2013-12-10  7:47 Ganapat Rao P Kulkarni
  2013-12-12  7:48 ` Ganapat Rao P Kulkarni
  0 siblings, 1 reply; 4+ messages in thread
From: Ganapat Rao P Kulkarni @ 2013-12-10  7:47 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

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.

please suggest/share, if you have any ideas to do so.

regards,
Ganapat

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ARM64: Domain Equivalent support in ARMv8
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Ganapat Rao P Kulkarni @ 2013-12-12  7:48 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Will/Catalin,

The requirement what i posted is doable on ARMv8?
If yes, can you please suggest the way to do it!

regards
Ganapat

On Tue, Dec 10, 2013 at 1:17 PM, Ganapat Rao P Kulkarni
<gpkulkarni@gmail.com> wrote:
> Hi,
>
> 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.
>
> please suggest/share, if you have any ideas to do so.
>
> regards,
> Ganapat



-- 
regards,
Ganapat

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ARM64: Domain Equivalent support in ARMv8
  2013-12-12  7:48 ` Ganapat Rao P Kulkarni
@ 2013-12-12 11:55   ` Catalin Marinas
  2013-12-12 13:12     ` Ganapat Rao P Kulkarni
  0 siblings, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2013-12-12 11:55 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ARM64: Domain Equivalent support in ARMv8
  2013-12-12 11:55   ` Catalin Marinas
@ 2013-12-12 13:12     ` Ganapat Rao P Kulkarni
  0 siblings, 0 replies; 4+ messages in thread
From: Ganapat Rao P Kulkarni @ 2013-12-12 13:12 UTC (permalink / raw)
  To: linux-arm-kernel

Thanks.

On Thu, Dec 12, 2013 at 5:25 PM, Catalin Marinas
<catalin.marinas@arm.com> wrote:
> 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



-- 
regards,
Ganapat

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-12 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-12-12 13:12     ` Ganapat Rao P Kulkarni

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).