[PATCH 1/2] PCI: hv: enable pci_hyperv to allow dynamic vector allocation

Shradha Gupta
2025-04-21T06:33:57Z

>On Wed, Apr 16 2025 at 08:36, Shradha Gupta wrote:
>> For supporting dynamic MSI vector allocation by pci controllers, enabling
>> the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN is not enough, msix_prepare_msi_desc()
>> to prepare the desc is needed. Export pci_msix_prepare_desc() to allow pci
>> controllers like pci-hyperv to support dynamic MSI vector allocation.
>>Also, add the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN and use
>> pci_msix_prepare_desc() in pci_hyperv controller
>
>Seems your newline key is broken. Please structure changelogs properly
>
>in paragraphs:
>
>
>https://www.kernel.org/doc/html/latest/process/maintainer->tip.html%23changelog&data=05%7C02%7Cshradhagupta%40microsoft.com%7Cb1abd0d5505243eacd4c08dd7d96afa6%7C72f988bf86f141af91ab2d7cd011db47%7C1%>7C0%7C638804808451114975%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3%3D%7C0%7C%7C%7C&sdata=Q4YgrhG0y7nFuYYePe3QVydzUQJ2owKiqWZwLkZjCR0%3D&reserved=0

>> drivers/pci/controller/pci-hyperv.c | 7 +++++--
>> drivers/pci/msi/irqdomain.c | 5 +++--
>> include/linux/msi.h | 2 ++
>
>This wants to be split into a patch which exports
>pci_msix_prepare_desc() and one which enables the functionality in
>PCI/HV.
>
>Thanks,
>
> tglx

Thanks for all the comments, Thomas. I will incorporate all these and send out the next version.
We are facing some issues with mutt, hence I am replying through outlook. Apologies
for the issues with formatting for this reply. :)