diff options
author | Juergen Gross <jgross@suse.com> | 2023-06-12 09:57:18 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-07-31 17:54:27 +0200 |
commit | 358cd9afd069992cf5170f02987011f51a163d1d (patch) | |
tree | 213d02f2e0e632e66e0d31ea1ed7065a3bac2955 /include/xen | |
parent | 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4 (diff) |
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>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/xen.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xen/xen.h b/include/xen/xen.h index f989162983c3..a1e5b3f18d69 100644 --- a/include/xen/xen.h +++ b/include/xen/xen.h @@ -29,6 +29,12 @@ extern bool xen_pvh; extern uint32_t xen_start_flags; +#ifdef CONFIG_XEN_PV +extern bool xen_pv_pci_possible; +#else +#define xen_pv_pci_possible 0 +#endif + #include <xen/interface/hvm/start_info.h> extern struct hvm_start_info pvh_start_info; void xen_prepare_pvh(void); |