kvm_adjust_itstate(9)
πΈ 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 π
- Kernel file
./arch/arm64/kvm/hyp/aarch32.c kvm_skip_instr32(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms