]> xenbits.xensource.com Git - people/dwmw2/xen.git/commit
AMD,IOMMU: Clean up old entries in remapping tables when creating new one
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Feb 2013 14:20:47 +0000 (15:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Feb 2013 14:20:47 +0000 (15:20 +0100)
commit94d4a1119d938aecd02a6df8111e97358161cbf5
tree847b57e1aa363e8b7a77234fd6b550ff78965c0c
parent32d48e594d48deeaa13f0a9ed82bf22e9c9ac567
AMD,IOMMU: Clean up old entries in remapping tables when creating new one

When changing the affinity of an IRQ associated with a passed
through PCI device, clear previous mapping.

This is XSA-36 / CVE-2013-0153.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
In addition, because some BIOSes may incorrectly program IVRS
entries for IOAPIC try to check for entry's consistency. Specifically,
if conflicting entries are found disable IOMMU if per-device
remapping table is used. If entries refer to bogus IOAPIC IDs
disable IOMMU unconditionally

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h