kvm_adjust_itstate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 kvm_adjust_itstate(9) 🌸

okay bestie, welcome to the Kernel API Manual page for kvm_adjust_itstate πŸ’– this one is short, iconic, and very β€œtrust me, the manual bookkeeping is the whole plot.”


✨ NAME ✨

kvm_adjust_itstate β€” adjust ITSTATE when emulating instructions in IT-block 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void kvm_adjust_itstate (struct kvm_vcpu *vcpu );

πŸ’… ARGUMENTS πŸ’…

  • vcpu β€” The VCPU pointer. that’s the whole argument, bestie, and yes it is literally the VCPU pointer πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so here’s the vibe: when exceptions occur while instructions are executed in Thumb IF-THEN blocks, the ITSTATE field of the CPSR is not advanced (updated). no cap, it just doesn’t get updated for you 😭 so we have to do this little bit of work manually. lowkey iconic of us, honestly.

the fields map like this:

IT[7:0] -> CPSR[26:25],CPSR[15:10]

that mapping is the main character here β€” copy it, respect it, don’t mess with it πŸ’€


🌈 SEE ALSO 🌈


mwah πŸ’‹ and that’s the whole page, bestie β€” from ./arch/arm64/kvm/hyp, dated October 2026, and yes it’s still kvm_adjust_itstate(9) βœ¨πŸŽ€

πŸ“¦ where this page comes from