Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1332996 > unrolled thread

Re: [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled

Started byAlex Williamson <alex.williamson@redhat.com>
First post2016-02-12 19:20 +0100
Last post2016-02-17 16:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled Alex Williamson <alex.williamson@redhat.com> - 2016-02-12 19:20 +0100
    Re: [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled Luis Henriques <luis.henriques@canonical.com> - 2016-02-17 16:40 +0100

#1332996 — Re: [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled

FromAlex Williamson <alex.williamson@redhat.com>
Date2016-02-12 19:20 +0100
SubjectRe: [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled
Message-ID<r1qtX-27E-1@gated-at.bofh.it>
On Wed, 3 Feb 2016 20:51:08 +0000
Luis Henriques <luis.henriques@canonical.com> wrote:

> The following link failure occurs when CONFIG_PCI_MSI is not set:
> 
> drivers/built-in.o: In function `vfio_msi_set_vector_signal':
> :(.text+0x626640): undefined reference to `pci_write_msi_msg'
> 
> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> ---
>  drivers/vfio/pci/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/Kconfig b/drivers/vfio/pci/Kconfig
> index 02912f180c6d..b9dbfc9aeee1 100644
> --- a/drivers/vfio/pci/Kconfig
> +++ b/drivers/vfio/pci/Kconfig
> @@ -1,6 +1,6 @@
>  config VFIO_PCI
>  	tristate "VFIO support for PCI devices"
> -	depends on VFIO && PCI && EVENTFD
> +	depends on VFIO && PCI_MSI && EVENTFD
>  	select VFIO_VIRQFD
>  	select IRQ_BYPASS_MANAGER
>  	help
> 


It seems like a better solution would be to have pci stub these out
with static inlines when !CONFIG_PCI_MSI, we already do that for quite
a lot of MSI and MSI-X callbacks.  MSI/X on the device clearly won't
work if the host doesn't support MSI, and maybe there are improvements
to be made there, but MSI is a subcomponent of vfio-pci, the module
itself shouldn't depend on MSI.  Thanks,

Alex

[toc] | [next] | [standalone]


#1336525

FromLuis Henriques <luis.henriques@canonical.com>
Date2016-02-17 16:40 +0100
Message-ID<r3cmS-8kt-15@gated-at.bofh.it>
In reply to#1332996
On Fri, Feb 12, 2016 at 11:17:58AM -0700, Alex Williamson wrote:
> On Wed, 3 Feb 2016 20:51:08 +0000
> Luis Henriques <luis.henriques@canonical.com> wrote:
> 
> > The following link failure occurs when CONFIG_PCI_MSI is not set:
> > 
> > drivers/built-in.o: In function `vfio_msi_set_vector_signal':
> > :(.text+0x626640): undefined reference to `pci_write_msi_msg'
> > 
> > Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> > ---
> >  drivers/vfio/pci/Kconfig | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/vfio/pci/Kconfig b/drivers/vfio/pci/Kconfig
> > index 02912f180c6d..b9dbfc9aeee1 100644
> > --- a/drivers/vfio/pci/Kconfig
> > +++ b/drivers/vfio/pci/Kconfig
> > @@ -1,6 +1,6 @@
> >  config VFIO_PCI
> >  	tristate "VFIO support for PCI devices"
> > -	depends on VFIO && PCI && EVENTFD
> > +	depends on VFIO && PCI_MSI && EVENTFD
> >  	select VFIO_VIRQFD
> >  	select IRQ_BYPASS_MANAGER
> >  	help
> > 
> 
> 
> It seems like a better solution would be to have pci stub these out
> with static inlines when !CONFIG_PCI_MSI, we already do that for quite
> a lot of MSI and MSI-X callbacks.  MSI/X on the device clearly won't
> work if the host doesn't support MSI, and maybe there are improvements
> to be made there, but MSI is a subcomponent of vfio-pci, the module
> itself shouldn't depend on MSI.  Thanks,
> 
> Alex
> 

Thanks for reviewing.  I'll submit a new patch later today, stubbing
pci_write_msi_msg() to fix this failure.

Cheers,
--
Luís

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web