]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: hv: Allow dynamic MSI-X vector allocation
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Wed, 11 Jun 2025 14:10:15 +0000 (07:10 -0700)
committerShradha Gupta <shradhagupta@linux.microsoft.com>
Tue, 17 Jun 2025 06:15:14 +0000 (06:15 +0000)
commitad518f2557b971976fc9d99a6a8cd2b453742bf9
tree75f76b3b94db969ddb519e194cb618321bfcb561
parent5da8a8b8090b5f79a816ba016af3a70a9d7287bf
PCI: hv: Allow dynamic MSI-X vector allocation

Allow dynamic MSI-X vector allocation for pci_hyperv PCI controller
by adding support for the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN and using
pci_msix_prepare_desc() to prepare the MSI-X descriptors.

Feature support added for both x86 and ARM64

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pci-hyperv.c