vfio_ap_mdev_validate_masks(9)
π vfio_ap_mdev_validate_masks β the kernel API manual, bestie edition β¨
okay so real talk, this page lives in the Kernel API Manual, and today's main character is vfio_ap_mdev_validate_masks. yes it's a long name. yes it ate. let's get into it π«Ά
β¨ NAME β¨
vfio_ap_mdev_validate_masks β this one's whole job is checking that the APQNs assigned to the mdev are not reserved for the default zcrypt driver, and not already assigned to another mdev. that's it. that's the vibe check π
πΈ SYNOPSIS πΈ
int vfio_ap_mdev_validate_masks (struct ap_matrix_mdev *matrix_mdev );
π¦ ARGUMENTS π¦
matrix_mdevβ the mdev that the APQNs being validated are assigned to. like, this is the one we're checking up on π
β RETURN β
bestie it returns one of the following values, no cap:
- the error returned from the
ap_apqn_in_matrix_owned_by_def_drvfunction β most likely-EBUSY, which means theap_attr_mutexlock is already held π EADDRNOTAVAILif an APQN assigned tomatrix_mdevis reserved for the zcrypt default driver πEADDRINUSEif an APQN assigned tomatrix_mdevis assigned to another mdev π- a zero, indicating validation succeeded β slay
π SEE ALSO π
the kernel file, obviously:
- Kernel file
./drivers/s390/crypto/vfio_ap_ops.c
and the whole friend group (iykyk):
get_update_locks_for_kvm(9),release_update_locks_for_kvm(9)get_update_locks_for_mdev(9),release_update_locks_for_mdev(9)get_update_locks_by_apqn(9),get_update_locks_for_queue(9)vfio_ap_mdev_get_queue(9),vfio_ap_wait_for_irqclear(9)vfio_ap_free_aqic_resources(9),vfio_ap_irq_disable(9)vfio_ap_validate_nib(9),ensure_nib_shared(9),vfio_ap_irq_enable(9)vfio_ap_le_guid_to_be_uuid(9),handle_pqap(9)vfio_ap_mdev_verify_no_sharing(9)assign_adapter_store(9),vfio_ap_mdev_unlink_adapter(9),unassign_adapter_store(9)assign_domain_store(9),unassign_domain_store(9)assign_control_domain_store(9),unassign_control_domain_store(9)vfio_ap_mdev_set_kvm(9),vfio_ap_mdev_unset_kvm(9)vfio_ap_mdev_resource_in_use(9)vfio_ap_mdev_hot_unplug_cfg(9),vfio_ap_mdev_cfg_remove(9),vfio_ap_mdev_on_cfg_remove(9)vfio_ap_filter_apid_by_qtype(9)vfio_ap_mdev_cfg_add(9),vfio_ap_mdev_on_cfg_add(9),vfio_ap_on_cfg_changed(9)
ngl, that see-also list is giving "group chat at 2am" energy β everybody's there, everybody's tagged π
and that's the page!! sourced from ./drivers/s390/crypto, dated October 2026, filed under vfio_ap_mdev_validate_masks(9) β mwah, go validate those masks bestie ππ
π¦ 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