diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-07-05 08:31:29 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-07-05 08:31:29 +0100 |
commit | 52ff658b7e69e45f00679b7f1a29d25ab7ed7f8e (patch) | |
tree | 879b8c70575e6963c2778e10b23583664dcc1cc1 /xen/include/xen/iommu.h | |
parent | 19fbbfffdc2e8ad2c20f577e2a3e9b46a8a9e1da (diff) | |
download | xen-52ff658b7e69e45f00679b7f1a29d25ab7ed7f8e.tar.gz xen-52ff658b7e69e45f00679b7f1a29d25ab7ed7f8e.tar.bz2 xen-52ff658b7e69e45f00679b7f1a29d25ab7ed7f8e.zip |
x2APIC: improve enabling logic
This patch masks PIC and IOAPIC RTE's before x2APIC enabling, unmask
and restore them after x2APIC enabling. It also really enables
interrupt remapping before x2APIC enabling instead of just checking
interrupt remapping setting. This patch also handles all x2APIC
configuration including BIOS settings and command line
settings. Especially, it handles that BIOS hands over in x2APIC mode
(when there is apic id > 255). It checks if x2APIC is already enabled
by BIOS. If already enabled, it will disable interrupt remapping and
queued invalidation first, then enable them again.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r-- | xen/include/xen/iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index 49f9a34eda..1b16f7f392 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -58,6 +58,8 @@ struct iommu { int iommu_setup(void); int iommu_supports_eim(void); +int iommu_enable_IR(void); +int intremap_enabled(void); int iommu_add_device(struct pci_dev *pdev); int iommu_remove_device(struct pci_dev *pdev); |