]> xenbits.xensource.com Git - 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:35:44 +0000 (15:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Feb 2013 14:35:44 +0000 (15:35 +0100)
commit91e538b6c6ce08022cb1fdc8b6cd861ca7a16e2b
tree20cd3f6ec3a4368aea7cba97be08ee702acc5b01
parent3386631cc404c38944a732de71ca85b1a4fb9558
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-unstable changeset: 26517:601139e2b0db
xen-unstable date: Tue Feb  5 14:20:47 UTC 2013
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h