Re: [PATCH] linux-user/aarch64: Do not clear PROT_MTE on mprotect

2022-07-14 Thread Peter Maydell
On Mon, 11 Jul 2022 at 04:14, Richard Henderson wrote: > > The documentation for PROT_MTE says that it cannot be cleared > by mprotect. Further, the implementation of the VM_ARCH_CLEAR bit, > contains PROT_BTI confiming that bit should be cleared. > > Introduce PAGE_TARGET_STICKY to allow target/

[PATCH] linux-user/aarch64: Do not clear PROT_MTE on mprotect

2022-07-10 Thread Richard Henderson
The documentation for PROT_MTE says that it cannot be cleared by mprotect. Further, the implementation of the VM_ARCH_CLEAR bit, contains PROT_BTI confiming that bit should be cleared. Introduce PAGE_TARGET_STICKY to allow target/arch/cpu.h to control which bits may be reset during page_set_flags