x86: always initialize xen-swiotlb when xen-pcifront is enabling
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Jun 2023 08:21:16 +0000 (10:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 31 Jul 2023 15:54:27 +0000 (17:54 +0200)
commitf9a38ea5172a3365f4594335ed5d63e15af2fd18
treedb8757899fbdab035d525f9ae492b6d888c9a644
parent358cd9afd069992cf5170f02987011f51a163d1d
x86: always initialize xen-swiotlb when xen-pcifront is enabling

Remove the dangerous late initialization of xen-swiotlb in
pci_xen_swiotlb_init_late and instead just always initialize
xen-swiotlb in the boot code if CONFIG_XEN_PCIDEV_FRONTEND is
enabled and Xen PV PCI is possible.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/xen/swiotlb-xen.h
arch/x86/kernel/pci-dma.c
drivers/pci/xen-pcifront.c