]> Git Repo - linux.git/commit
xen: Remove dependency between pciback and privcmd
authorJiqian Chen <[email protected]>
Sat, 12 Oct 2024 08:45:37 +0000 (16:45 +0800)
committerJuergen Gross <[email protected]>
Fri, 18 Oct 2024 09:59:04 +0000 (11:59 +0200)
commit0fd2a743301b6b5eec0f407080f89bed98384836
tree327b2cadd794a4a1f9d56583084c69c9abc0962c
parentbf56c410162dbf2e27906acbdcd904cbbfdba302
xen: Remove dependency between pciback and privcmd

Commit 2fae6bb7be32 ("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: 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev")
Reported-by: Marek Marczykowski-Górecki <[email protected]>
Signed-off-by: Jiqian Chen <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Message-ID: <20241012084537.1543059[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
drivers/xen/Kconfig
drivers/xen/acpi.c
drivers/xen/privcmd.c
drivers/xen/xen-pciback/pci_stub.c
include/xen/acpi.h
This page took 0.061049 seconds and 4 git commands to generate.