linux/drivers/xen/xen-pciback
Jiqian Chen 0fd2a74330 xen: Remove dependency between pciback and privcmd
Commit 2fae6bb7be ("xen/privcmd: Add new syscall to get gsi from dev")
adds a weak reverse dependency to the config XEN_PRIVCMD definition, that
dependency causes xen-privcmd can't be loaded on domU, because dependent
xen-pciback isn't always be loaded successfully on domU.

To solve above problem, remove that dependency, and do not call
pcistub_get_gsi_from_sbdf() directly, instead add a hook in
drivers/xen/apci.c, xen-pciback register the real call function, then in
privcmd_ioctl_pcidev_get_gsi call that hook.

Fixes: 2fae6bb7be ("xen/privcmd: Add new syscall to get gsi from dev")
Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Message-ID: <20241012084537.1543059-1-Jiqian.Chen@amd.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2024-10-18 11:59:04 +02:00
..
conf_space_capability.c xen/pciback: fix cast to restricted pci_ers_result_t and pci_power_t 2024-09-25 11:31:09 +02:00
conf_space_header.c xen-pciback: Consider INTx disabled when MSI/MSI-X is enabled 2023-10-16 15:20:31 +02:00
conf_space_quirks.c xen-pciback: Use dev_printk() when possible 2020-05-27 17:27:37 -05:00
conf_space_quirks.h xen-pciback: Remove unused function declarations 2023-08-21 09:53:22 +02:00
conf_space.c xen-pciback: Consider INTx disabled when MSI/MSI-X is enabled 2023-10-16 15:20:31 +02:00
conf_space.h xen-pciback: fix INTERRUPT_TYPE_* defines 2020-03-30 17:31:57 +02:00
Makefile xen-pciback: allow compiling on other archs than x86 2021-11-02 08:03:43 -05:00
passthrough.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci_stub.c xen: Remove dependency between pciback and privcmd 2024-10-18 11:59:04 +02:00
pciback_ops.c xen/pciback: Fix comment typo 2022-08-12 12:19:50 +02:00
pciback.h xen-pciback: Remove unused function declarations 2023-08-21 09:53:22 +02:00
vpci.c xen-pciback: redo VF placement in the virtual topology 2021-05-21 09:55:13 +02:00
xenbus.c xen: make remove callback of xen driver void returned 2022-12-15 16:06:10 +01:00