guest_state_exit_irqoff(9)
π NAME π
okay so bestie, this is guest_state_exit_irqoff from the Kernel API Manual, and its whole personality is: establish state when returning from guest mode. that's the assignment. that's the vibe. β¨
β¨ SYNOPSIS β¨
void guest_state_exit_irqoff (void );
π ARGUMENTS π
voidβ no arguments. literally none. zero. empty set. π«Ά
π¦ DESCRIPTION π¦
okay so here's the lore: entry from a guest disables interrupts, but guest mode is traced as interrupts enabled. also, with NO_HZ_FULL, RCU might be idle. no cap. π
so this function does three little steps in order:
- Tell lockdep that interrupts are disabled. π
- Invoke context tracking if enabled to reactivate RCU. π₯
- Trace interrupts off state. β
It's invoked from architecture specific code after exiting a guest. and listen: it must be invoked with interrupts disabled, and the caller must be non-instrumentable. not optional, bestie. π
The caller also has to invoke guest_timing_exit_irqoff after this. yes, after. no skipping. π
πΈ NOTE πΈ
this is analogous to enter_from_user_mode. iykyk. π
β SEE ALSO β
the kernel file ./include/linux/kvm_host.h is right there, and the whole squad is:
guest_state_enter_irqoff(9)kvm_gpc_init(9)kvm_gpc_activate(9)kvm_gpc_activate_hva(9)kvm_gpc_check(9)kvm_gpc_refresh(9)kvm_gpc_deactivate(9)kvm_stats_linear_hist_update(9)kvm_stats_log_hist_update(9)
okay that's the page, bestie! source/version: ./include/linux; date: October 2026; manual: guest_state_exit_irqoff(9). byeee and slay your interrupts responsibly ππ¦π
π¦ 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