kvm_s390_cpus_from_pv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie πŸ’– welcome to kvm_s390_cpus_from_pv(9), straight outta the Kernel API Manual. This one is lowkey iconic: it takes a protected VM and converts, like, all of its protected vCPUs into non protected ones. no cap. ✨

🌸 NAME 🌸

kvm_s390_cpus_from_pv β€” convert all protected vCPUs in a protected VM to non protected. That's the whole assignment, and it ate. πŸ’…

✨ SYNOPSIS ✨

int kvm_s390_cpus_from_pv (struct kvm *kvm , u16 *rc , u16 *rrc );

πŸŽ€ ARGUMENTS πŸŽ€

  • kvm β€” the VM whose protected vCPUs are to be converted. main character energy fr.
  • rc β€” the return value for the RC field of the UVC, in case of error.
  • rrc β€” the return value for the RRC field of the UVC, in case of error.

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe: it does not stop in case of error 😭 it literally tries to convert as many CPUs as possible. resilient queen behavior.

In case of error, the RC and RRC of the last error are returned. iykyk. 🫢

πŸ”₯ RETURN πŸ”₯

Returns 0 in case of success, otherwise -EIO. periodt. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./arch/s390/kvm/s390/s390.c β€” yes bestie, go peek at the source. πŸ‘‘


mwah πŸ’‹ cute lil sign-off: this page comes from ./arch/s390/kvm/s390, October 2026, for kvm_s390_cpus_from_pv(9). byeee 🫢🌈

πŸ“¦ where this page comes from