hw/ppc/Kconfig: Imply VFIO_PCI
commit4278df9d1d2383b738338c857406357660f11e42
authorCédric Le Goater <clg@redhat.com>
Tue, 21 Nov 2023 14:03:55 +0000 (21 15:03 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19 19:03 +0100)
treee5af65ff04d761a2f390540471373f47e8ffe54b
parent98dad2b01931f6064c6c4b48ca3c2a1d9f542cd8
hw/ppc/Kconfig: Imply VFIO_PCI

When the legacy and iommufd backends were introduced, a set of common
vfio-pci routines were exported in pci.c for both backends to use :

  vfio_pci_pre_reset
  vfio_pci_get_pci_hot_reset_info
  vfio_pci_host_match
  vfio_pci_post_reset

This introduced a build failure on PPC when --without-default-devices
is use because VFIO is always selected in ppc/Kconfig but VFIO_PCI is
not.

Use an 'imply VFIO_PCI' in ppc/Kconfig and bypass compilation of the
VFIO EEH hooks routines defined in hw/ppc/spapr_pci_vfio.c with
CONFIG_VFIO_PCI.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/ppc/Kconfig
hw/ppc/spapr_pci_vfio.c