Re: [PATCH v5 5/7] powerpc/mm: Write to PTCR only if ultravisor disabled

2019-08-14 Thread Michael Ellerman
Claudio Carvalho writes: > In ultravisor enabled systems, PTCR becomes ultravisor privileged only > for writing and an attempt to write to it will cause a Hypervisor > Emulation Assitance interrupt. > > This patch adds the try_set_ptcr(val) macro as an accessor to > mtspr(SPRN_PTCR, val), which wi

[PATCH v5 5/7] powerpc/mm: Write to PTCR only if ultravisor disabled

2019-08-07 Thread Claudio Carvalho
In ultravisor enabled systems, PTCR becomes ultravisor privileged only for writing and an attempt to write to it will cause a Hypervisor Emulation Assitance interrupt. This patch adds the try_set_ptcr(val) macro as an accessor to mtspr(SPRN_PTCR, val), which will be executed only if ultravisor dis