kvm_s390_cpus_to_pv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

iykyk πŸ“


fr fr, double-check your pointers before you call this β€” rc and rrc are 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