stage2_flush_vm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– stage2_flush_vm(9) πŸ’–

okay so bestie, you’ve opened stage2_flush_vm(9) from the Kernel API Manual, and honestly? it’s giving small function, big cache-invalidate energy. ✨ No cap, this is the page about invalidating cache for pages mapped in stage 2.


🌸 NAME 🌸

  • stage2_flush_vm β€” Invalidate cache for pages mapped in stage 2

πŸ¦‹ SYNOPSIS πŸ¦‹

void stage2_flush_vm (struct kvm *kvm );

πŸŽ€ ARGUMENTS πŸŽ€

  • kvm β€” The struct kvm pointer. That’s the pointer you’re handing over, bestie 🫢

πŸ’… DESCRIPTION πŸ’…

So basically: go through the stage 2 page tables and invalidate any cache lines backing memory already mapped to the VM. That’s the whole assignment β€” stage 2 page tables get the walk-through, and any cache lines backing memory that’s already mapped to the VM get invalidated. Periodt. πŸ’–


🌈 SEE ALSO 🌈

Kernel file: ./arch/arm64/kvm/mmu.c

Here’s the whole friend group, in order, no cap πŸ‘‘


Signed off from the ./arch/arm64/kvm source corner, dated October 2026, with stage2_flush_vm(9) on the footer and main-character cache-flush energy β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from