kvm_s390_cpus_to_pv(9)
π kvm_s390_cpus_to_pv(9) π
okay bestie, welcome to the Kernel API Manual β yes this is a real function name and yes it's a whole mouthful, we love that for us. it's kvm_s390_cpus_to_pv, and it's lowkey the glow-up button for vCPUs β¨
πΈ NAME πΈ
kvm_s390_cpus_to_pv β converts all the non-protected vCPUs in a protected VM into protected ones. like a makeover but for virtual CPUs, no cap π
π SYNOPSIS π
int kvm_s390_cpus_to_pv (struct kvm *kvm , u16 *rc , u16 *rrc );
π¦ ARGUMENTS π¦
kvmβ the VM whose protected vCPUs are getting converted. it's the main character here, obviously πrcβ holds the return value for the RC field of the UVC, specifically in case of error πrrcβ same energy, but for the RRC field of the UVC, also in case of error. the two of them are literally a matching set π«Ά
β¨ DESCRIPTION β¨
it goes in and converts everything over to protected mode. and if something goes wrong? it tries to undo the conversion in case of error. like, bestie said "nvm" and hits reverse π it tries β that's the energy.
π₯ RETURN π₯
0β slay, it worked π- otherwise
-EIOβ it did not work, and that's the whole story π
π SEE ALSO π
go peek at the kernel file ./arch/s390/kvm/s390/s390.c β that's where the magic lives π§
and these iconic siblings, all in the (9) section:
kvm_s390_update_topology_change_report(9)kvm_s390_cpus_from_pv(9)kvm_arch_vcpu_pre_fault_memory(9)kvm_test_age_gfn(9)kvm_age_gfn(9)kvm_unmap_gfn_range(9)
iykyk π
fr fr, double-check your pointers before you call this βrcandrrcare there for the error case and you'll want them filled in properly.
okay that's the whole page, love u, go forth and convert those vCPUs π
sign-off time: this one came from ./arch/s390/kvm/s390, dated October 2026, and it's kvm_s390_cpus_to_pv(9) in the Kernel API Manual β take care of her ππ
π¦ 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