aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/pci.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-09-11 16:01:15 +0200
committerJan Beulich <jbeulich@suse.com>2012-09-11 16:01:15 +0200
commite46ea4d44dc0929d9e15dcde5c13b569278970d2 (patch)
tree6992a7be13ec2c6a58fe7c2e7e9d6b5f17bc0e58 /xen/include/xen/pci.h
parent510cbdf5edecc3a4898c87b02de9e4f3e9360eda (diff)
downloadxen-e46ea4d44dc0929d9e15dcde5c13b569278970d2.tar.gz
xen-e46ea4d44dc0929d9e15dcde5c13b569278970d2.tar.bz2
xen-e46ea4d44dc0929d9e15dcde5c13b569278970d2.zip
PCI: don't allow guest assignment of devices used by Xen
This covers the devices used for the console and the AMD IOMMU ones (as would be any others that might get passed to pci_ro_device()). Boot video device determination cloned from similar Linux logic. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r--xen/include/xen/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index d302034e30..18b7fb1b11 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -103,6 +103,7 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, const struct pci_dev_info *);
int pci_remove_device(u16 seg, u8 bus, u8 devfn);
int pci_ro_device(int seg, int bus, int devfn);
void arch_pci_ro_device(int seg, int bdf);
+int pci_hide_device(int bus, int devfn);
struct pci_dev *pci_get_pdev(int seg, int bus, int devfn);
struct pci_dev *pci_get_pdev_by_domain(
struct domain *, int seg, int bus, int devfn);