Thread (139 messages) 139 messages, 12 authors, 2024-08-20

Re: [PATCH v4 06/29] arm64: context switch POR_EL0 register

From: Kevin Brodsky <hidden>
Date: 2024-07-22 13:40:39
Also in: kvmarm, linux-arm-kernel, linux-fsdevel, linux-mm

On 03/05/2024 15:01, Joey Gouly wrote:
quoted hunk ↗ jump to hunk
@@ -371,6 +382,9 @@ int copy_thread(struct task_struct *p, const struct kernel_clone_args *args)
 		if (system_supports_tpidr2())
 			p->thread.tpidr2_el0 = read_sysreg_s(SYS_TPIDR2_EL0);
 
+		if (system_supports_poe())
+			p->thread.por_el0 = read_sysreg_s(SYS_POR_EL0);
This is most likely needed for kernel threads as well, because they may
be affected by POR_EL0 too (see my reply on patch 17).

Kevin
+
 		if (stack_start) {
 			if (is_compat_thread(task_thread_info(p)))
 				childregs->compat_sp = stack_start;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help