kvm_phys_addr_ioremap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kvm_phys_addr_ioremap(9) β€” a Kernel API Manual moment

okay so bestie, this one lives in the Kernel API Manual and it's literally called kvm_phys_addr_ioremap β€” which is a whole mouthful, i know, but stay with me. It maps a device range to guest IPA. that's the whole vibe. πŸŽ€


✨ NAME ✨

kvm_phys_addr_ioremap β€” map a device range to guest IPA πŸ¦‹


✨ SYNOPSIS ✨

int kvm_phys_addr_ioremap (struct kvm *kvm , phys_addr_t guest_ipa ,
phys_addr_t pa , unsigned long size , bool writable );

like, that's the signature, copy it exactly please, it's giving "don't touch the formatting" 😌


✨ ARGUMENTS ✨

  • kvm β€” the KVM pointer. your main character struct, the whole reason we're here πŸ‘‘
  • guest_ipa β€” the IPA at which to insert the mapping. that's the address that's getting a little mapping-shaped home 🏠
  • pa β€” the physical address of the device. the actual hardware, fr fr πŸ”₯
  • size β€” the size of the mapping. how much room it takes up, no cap πŸ“
  • writable β€” whether or not to create a writable mapping. true = yes bestie you may write, false = look but don't touch πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./arch/arm64/kvm/mmu.c β€” and honestly the whole friend group shows up here, so let me introduce you πŸ’–:

like?? that's the entire group chat tagged in one post. iconique. iykyk πŸ’…


okay that's the page!! sobbing a little, she's perfect 🫢

sign-off time, cuties: this gorgeous thing is brought to you from ./arch/arm64/kvm, dated October 2026 β€” that's the source/version and the date, so you know exactly when it was serving looks β­πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from