Thread (58 messages) 58 messages, 8 authors, 2025-10-28

Re: [PATCH v3 11/13] x86/xen: use lazy_mmu_state when context-switching

From: David Hildenbrand <hidden>
Date: 2025-10-24 15:17:03
Also in: linux-arm-kernel, linux-mm, lkml, sparclinux, xen-devel

On 24.10.25 17:13, David Woodhouse wrote:
On Fri, 2025-10-24 at 16:51 +0200, David Hildenbrand wrote:
quoted
On 24.10.25 16:47, David Woodhouse wrote:
quoted
On Thu, 2025-10-23 at 22:06 +0200, David Hildenbrand wrote:
quoted
On 15.10.25 10:27, Kevin Brodsky wrote:
quoted
We currently set a TIF flag when scheduling out a task that is in
lazy MMU mode, in order to restore it when the task is scheduled
again.

The generic lazy_mmu layer now tracks whether a task is in lazy MMU
mode in task_struct::lazy_mmu_state. We can therefore check that
state when switching to the new task, instead of using a separate
TIF flag.

Signed-off-by: Kevin Brodsky <redacted>
---

Looks ok to me, but I hope we get some confirmation from x86 / xen
folks.

I know tglx has shouted at me in the past for precisely this reminder,
but you know you can test Xen guests under QEMU/KVM now and don't need
to actually run Xen? Has this been boot tested?
And after that, boot-testing sparc as well? :D
Also not that hard in QEMU, I believe. Although I do have some SPARC
boxes in the shed...
Yeah, I once went through the pain of getting a sparc64 system booting 
in QEMU with a distro (was it debian?) that was 7 years old or so.

Fantastic experience.

Only took me 2 days IIRC. Absolutely worth it to not break upstream 
kernels on a museum piece.

-- 
Cheers

David / dhildenb

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help