uvio_add_secret(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to uvio_add_secret(9) β€” yes, that's the page, straight from the Kernel API Manual. it performs an Add Secret UVC. iconic behavior. 🫢

✨ SYNOPSIS ✨

int uvio_add_secret (struct uvio_ioctl_cb *uv_ioctl );

πŸŽ€ ARGUMENTS πŸŽ€

  • uv_ioctl β€” the ioctl control block. that's the arg, periodt. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so uvio_add_secret performs the Add Secret Ultravisor Call. literally what it says on the tin. ✨

The given userspace argument address and size are verified to be valid, but every other check is made by the Ultravisor (UV). so bestie, UV errors won't result in a negative return value β€” that's a big deal. The request is then copied to kernelspace, the UV-call is performed, and the results are copied back to userspace. πŸ’«

The argument has to point to an Add Secret Request Control Block β€” which is an encrypted and cryptographically verified request that inserts a protected guest's secrets into the Ultravisor for later use. no cap, that's the whole point. πŸ”

If the Add Secret UV facility is not present, UV will return invalid command rc. This won't be fenced in the driver and does not result in a negative return value. periodt. πŸ’€

☁️ CONTEXT ☁️

might sleep 😴

🌈 RETURN 🌈

0 on success or a negative error code on error. simple as that, bestie. πŸŽ€

🌸 SEE ALSO 🌸

Kernel file ./drivers/s390/char/uvdevice.c, plus uvio_uvdev_info(9), uvio_attestation(9), uvio_list_secrets(9), uvio_lock_secrets(9), and uvio_retr_secret(9). go read those next, iykyk. πŸ¦‹


mwah πŸ’‹ β€” source/version + date vibes: ./drivers/s390/char Β· October 2026. and that's the whole uvio_add_secret(9) page, bestie. πŸ’–

πŸ“¦ where this page comes from