X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fxen%2Fxen-pciback%2Fpciback_ops.c;h=1078e8d631c9513521da39d6b42903c6a2ec46bd;hb=8d47065f7d1980dde52abb874b301054f3013602;hp=73dafdc494aa8322e037f1d4a9ad4ec5530c5743;hpb=4fee35a3c999d7729a49db12ead13562fb8e84ea;p=linux-2.6-microblaze.git diff --git a/drivers/xen/xen-pciback/pciback_ops.c b/drivers/xen/xen-pciback/pciback_ops.c index 73dafdc494aa..1078e8d631c9 100644 --- a/drivers/xen/xen-pciback/pciback_ops.c +++ b/drivers/xen/xen-pciback/pciback_ops.c @@ -227,8 +227,9 @@ int xen_pcibk_enable_msix(struct xen_pcibk_device *pdev, /* * PCI_COMMAND_MEMORY must be enabled, otherwise we may not be able * to access the BARs where the MSI-X entries reside. + * But VF devices are unique in which the PF needs to be checked. */ - pci_read_config_word(dev, PCI_COMMAND, &cmd); + pci_read_config_word(pci_physfn(dev), PCI_COMMAND, &cmd); if (dev->msi_enabled || !(cmd & PCI_COMMAND_MEMORY)) return -ENXIO;