xe_gt_sriov...ggtt_restore(9)
π xe_gt_sriov_pf_migration_ggtt_restore π
okay bestie, welcome to the xe_gt_sriov_pf_migration_ggtt_restore(9) page from the Kernel API Manual β yes the title is a whole mouthful, we know, but it's giving "long function name, big responsibility" energy and honestly? iconic. π
This one's all about restoring VF GGTT migration data. Sound scary? Ngl it's not, it's just very specific. Let's get into it. β¨
πΈ SYNOPSIS πΈ
int xe_gt_sriov_pf_migration_ggtt_restore(struct xe_gt *gt, unsigned int vfid, struct xe_sriov_packet *data);
that's the whole shape of it β three args in, an int out. slay. π
π¦ ARGUMENTS π¦
gtβ thexe_gt, literally just the GT struct we're working with. main character struct, honestly.vfidβ the VF identifier. and listen, bestie β it can't be 0. that's a hard no. not optional, not negotiable. π«dataβ thexe_sriov_packetthat's carrying the migration data. this is the little payload courier of the whole operation. π¦
β¨ DESCRIPTION β¨
so what does it actually do? it restores the VF GGTT migration data. that's the vibe.
also, super important caveat: this function is for PF only. like, it's not for everybody, it's exclusive β PF-only zone, no VFs allowed past this point. π
π₯ RETURN π₯
0on success π- a negative error code on failure π
that's the whole contract. zero means we ate, negative means something went sideways.
π SEE ALSO π
okay this is the part where the manpage just lists the whole friend group, and we're not leaving anyone out. the Kernel file it lives in:
./drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
and the entire crew of related functions:
xe_gt_sriov_pf_migration_ggtt_save(9)xe_gt_sriov_pf_migration_guc_save(9)xe_gt_sriov_pf_migration_guc_restore(9)xe_gt_sriov_pf_migration_mmio_save(9)xe_gt_sriov_pf_migration_mmio_restore(9)xe_gt_sriov_pf_migration_vram_save(9)xe_gt_sriov_pf_migration_vram_restore(9)xe_gt_sriov_pf_migration_size(9)xe_gt_sriov_pf_migration_ring_empty(9)xe_gt_sriov_pf_migration_ring_full(9)xe_gt_sriov_pf_migration_ring_free(9)xe_gt_sriov_pf_migration_save_init(9)xe_gt_sriov_pf_migration_save_data_pending(9)xe_gt_sriov_pf_migration_save_data_complete(9)xe_gt_sriov_pf_migration_save_produce(9)xe_gt_sriov_pf_migration_restore_consume(9)xe_gt_sriov_pf_migration_restore_produce(9)xe_gt_sriov_pf_migration_save_consume(9)xe_gt_sriov_pf_migration_init(9)
like, the whole save/restore ring-buffer saga. iykyk. π
and that's the page, bestie!! π«Ά thx for reading, drink some water, and remember: vfid can't be 0. sourced from the ./drivers/gpu/drm/xe Kernel API Manual, dated October 2026, page xe_gt_sriov...ggtt_restore(9) β catch you on the next one πβ¨
π¦ 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