x86/PCI: read maximum MSI vector count early
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 14:01:31 +0000 (16:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 14:01:31 +0000 (16:01 +0200)
commit93a78101260b22510c5f823577ff826fbfc46136
treecb084fdfc59b09ec26c3159755e32c3793c04560
parent4e5e40fbd5852b2b638e5d9cf775d52f93b3fecb
x86/PCI: read maximum MSI vector count early

Rather than doing this every time we set up interrupts for a device
anew (and then in several places) fill this invariant field right after
allocating struct pci_dev.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/msi.c
xen/drivers/passthrough/pci.c
xen/drivers/vpci/msi.c
xen/include/xen/pci.h
xen/include/xen/vpci.h