Are you sure it won't get populated at all ? even if you manually set IRQ affinity via sysfs ?
Yes, the msi_desc affinity is not initialized without the affinity descriptor passed (which is what PCI_IRQ_AFFINITY is for).
Anyway we can implement this driver helper function to return the IRQ affinity hint stored in the driver: "cpumask_first(mdev->priv.irq_info[vector].mask);"
minus the cpumask_first, but yea. Please send a new patch so we can test it out.