vfio_ap_mdev_hot_unplug_cfg(9)
β¨ vfio_ap_mdev_hot_unplug_cfg(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a function page, and it's lowkey a whole vibe β it's all about hot unplugging stuff from a guest. Let's get into it π«Ά
πΈ NAME πΈ
vfio_ap_mdev_hot_unplug_cfg β the function that hot unplugs the adapters, domains and control domains that have been removed from the host's AP configuration from a guest. like, the host said "these are gone now" and this function makes the guest act accordingly π
π¦ SYNOPSIS π¦
void vfio_ap_mdev_hot_unplug_cfg (struct ap_matrix_mdev *matrix_mdev ,
unsigned long *aprem , unsigned long *aqrem , unsigned long *cdrem );
it returns nothing (void), it just does the thing. periodt β¨
π ARGUMENTS π
matrix_mdevβ anap_matrix_mdevobject attached to a KVM guest. this is the main character of the operation, iykyk πapremβ the adapters that have been removed from the host's AP configuration πaqremβ the domains that have been removed from the host's AP configuration βcdremβ the control domains that have been removed from the host's AP configuration.
so yeah, three separate "removed" masks: adapters, domains, control domains. keep 'em straight, bestie π
π SEE ALSO π
the kernel file this lives in, fr fr:
./drivers/s390/crypto/vfio_ap_ops.c
and the whole friend group of related functions β literally the entire group chat π«Ά:
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),vfio_ap_mdev_validate_masks(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_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)
aaand that's the whole page, bestie πΈ mwah π this one ships out of ./drivers/s390/crypto, dated October 2026, and it's filed under the Kernel API Manual as vfio_ap_mdev_hot_unplug_cfg(9) β iconic, no notes πβ¨
π¦ 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