kvmhv_nestedv2_flush_vcpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ kvmhv_nestedv2_flush_vcpu(9) πŸ¦‹

ok so bestie, welcome to the Kernel API Manual β€” this one is a deep cut from the kvmhv_nestedv2 world and honestly it's giving "hypervisor lore, but make it fashion" πŸ’…


✨ NAME ✨

kvmhv_nestedv2_flush_vcpu β€” send modified Guest State IDs to the host 🌸


✨ SYNOPSIS ✨

int kvmhv_nestedv2_flush_vcpu (struct kvm_vcpu *vcpu , u64 time_limit );

like, that's the whole vibe β€” one function, two args, no cap 🫢


✨ ARGUMENTS ✨

  • vcpu β€” the vcpu, bestie. it's a struct kvm_vcpu * and it's literally just... the vcpu 😭
  • time_limit β€” a <italic>u64</italic> holding the hdec expiry tb ⏰

✨ DESCRIPTION ✨

okay so here's what's happening: this function sends the values marked by __kvmhv_nestedv2_mark_dirty to the L0 host πŸ‘‘ like, that's the whole job.

Thread wide values? those get copied to the H_GUEST_RUN_VCPU input buffer ✨ easy, slay.

Guest wide values? nope, not so fast β€” those need to be sent with H_GUEST_SET first πŸ™ˆ consider it a two-step, iykyk.

πŸ’€ bestie reminder: the hdec tb offset is always sent to L0 host. always. no exceptions, periodt.

🌈 SEE ALSO 🌈


and that's the page, bestie 🧚 source ./arch/powerpc/kvm, dated October 2026 β€” signed, sealed, kvmhv_nestedv2_flush_vcpu(9) πŸ’– mwah πŸ’‹

πŸ“¦ where this page comes from