]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xen/pci: add flag for PCI passthrough being possible
authorJuergen Gross <jgross@suse.com>
Mon, 12 Jun 2023 07:57:18 +0000 (09:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 31 Jul 2023 15:54:27 +0000 (17:54 +0200)
commit358cd9afd069992cf5170f02987011f51a163d1d
tree213d02f2e0e632e66e0d31ea1ed7065a3bac2955
parent5d0c230f1de8c7515b6567d9afba1f196fb4e2f4
xen/pci: add flag for PCI passthrough being possible

When running as a Xen PV guests passed through PCI devices only have a
chance to work if the Xen supplied memory map has some PCI space
reserved.

Add a flag xen_pv_pci_possible which will be set in early boot in case
the memory map has at least one area with the type E820_TYPE_RESERVED.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/x86/xen/setup.c
include/xen/xen.h