libxl: Only map legacy PCI IRQs if they are supported
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 8 Oct 2021 05:55:32 +0000 (08:55 +0300)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 11 Oct 2021 20:29:13 +0000 (13:29 -0700)
commite26f810a6f9295afe30ea08195715ddd96e2a123
tree3ebf8c887528bdfba0201686419ab621e7764b4b
parentbc2bdd4af4cbccaa332ea01583bb4ac691c3532d
libxl: Only map legacy PCI IRQs if they are supported

Arm's PCI passthrough implementation doesn't support legacy interrupts,
but MSI/MSI-X. This can be the case for other platforms too.
For that reason introduce a new CONFIG_PCI_SUPP_LEGACY_IRQ and add
it to the CFLAGS and compile the relevant code in the toolstack only if
applicable.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
[stefano: minor change to Makefile]
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/Makefile
tools/libs/light/libxl_pci.c