STRUCT VFIO_AP_QUEUE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, this is the Kernel API Manual page for struct vfio_ap_queue(9) β€” yes, the whole page, and it's giving β€œlil struct with a big job” energy. This struct contains the data associated with a queue bound to the vfio_ap device driver. Slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the struct, exactly as it is β€” no edits, no vibes-based refactoring, periodt:

       struct vfio_ap_queue {
           struct ap_matrix_mdev *matrix_mdev;
           dma_addr_t saved_iova;
           int apqn;
         #define VFIO_AP_ISC_INVALID 0xff;
           unsigned char saved_isc;
           struct hlist_node mdev_qnode;
           struct list_head reset_qnode;
           struct ap_queue_status reset_status;
           struct work_struct reset_work;
        };

And yes, #define VFIO_AP_ISC_INVALID 0xff; is right there in the struct definition β€” iconic, honestly. ✨

🫢 Members 🫢

  • matrix_mdev β€” the matrix mediated device 🫢
  • saved_iova β€” the notification indicator byte (nib) address πŸ“
  • apqn β€” the APQN of the AP queue device πŸ”’
  • saved_isc β€” the guest ISC registered with the GIB interface 🧚
  • mdev_qnode β€” allows the vfio_ap_queue struct to be added to a hashtable πŸ—‚οΈ
  • reset_qnode β€” allows the vfio_ap_queue struct to be added to a list of queues that need to be reset πŸ”
  • reset_status β€” the status from the last reset of the queue πŸ“Š
  • reset_work β€” work to wait for queue reset to complete ⏳

🌈 SEE ALSO 🌈

If you wanna snoop more, these are the refs to check out, bestie:

  • Kernel file ./drivers/s390/crypto/vfio_ap_private.h
  • struct ap_matrix_dev(9)
  • struct ap_matrix(9)
  • struct ap_queue_table(9)
  • struct ap_matrix_mdev(9)

Signed, sealed, and delivered from source ./drivers/s390/crypto, dated October 2026, and it's all about struct vfio_ap_queue(9) β€” byeee, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from