diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-09-07 08:44:50 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-09-07 08:44:50 +0100 |
commit | cda2f6c76132090176f4b88c84917861c21bd21c (patch) | |
tree | 387ba0fdfd857d89ec9501ad9c1f0e04adeb5b17 /xen/include/asm-x86/smp.h | |
parent | 1589882b8b25246268332a58135a2e66e20d63e2 (diff) | |
download | xen-cda2f6c76132090176f4b88c84917861c21bd21c.tar.gz xen-cda2f6c76132090176f4b88c84917861c21bd21c.tar.bz2 xen-cda2f6c76132090176f4b88c84917861c21bd21c.zip |
vt-d: enhance the support of Interrupt Remapping EIM and x2APIC
1) Clear Interrupt Remapping(IR) unit's CFI (Compatibility Format
Interrupt) to enhance security;
2) Move the iommu_setup() ahead and put it before we begin to use
IOAPIC so we can make sure after we enable Interrupt Remapping, the
later IOAPIC (and MSI) initialization would setup IOAPIC RTEs (and
MSI) with remappable format;
3) Enable x2APIC only when all VT-d engines support IR with EIM
(Extended Interrupt Mode). EIM enables external devices to deliver
interrupts to logical processor with >8-bit APIC ID.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'xen/include/asm-x86/smp.h')
-rw-r--r-- | xen/include/asm-x86/smp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h index 4abfb42fac..8cd15e2efb 100644 --- a/xen/include/asm-x86/smp.h +++ b/xen/include/asm-x86/smp.h @@ -49,6 +49,7 @@ extern void zap_low_mappings(l2_pgentry_t *base); #define MAX_APICID 256 extern u32 x86_cpu_to_apicid[]; +extern u32 cpu_2_logical_apicid[]; #define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu] |