linux/include/xen
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
..
arm
interface xen: sync elfnote.h from xen tree 2024-09-25 14:15:04 +02:00
acpi.h xen: Remove dependency between pciback and privcmd 2024-10-18 11:59:04 +02:00
balloon.h
events.h x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
features.h
grant_table.h
hvc-console.h
hvm.h
mem-reservation.h
page.h
pci.h xen/pci: Add a function to reset device for xen 2024-09-25 09:54:40 +02:00
platform_pci.h
swiotlb-xen.h
xen-front-pgdir-shbuf.h
xen-ops.h
xen.h
xenbus_dev.h
xenbus.h