OSDN Git Service

hw/i386: Introduce AMD IOMMU
authorDavid Kiarie <davidkiarie4@gmail.com>
Tue, 20 Sep 2016 15:42:33 +0000 (18:42 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 23 Sep 2016 22:02:00 +0000 (01:02 +0300)
commitd29a09ca68428b5708024ea2e9143de0a031081d
treeff9baf92729b08353735d764b85f99fb286c0c17
parentd61e45ecc78caf0141dd309c104c5e1fd2716a57
hw/i386: Introduce AMD IOMMU

Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU.
The IOMMU does basic translation, error checking and has a
minimal IOTLB implementation. This IOMMU bypassed the need
for target aborts by responding with IOMMU_NONE access rights
and exempts the region 0xfee00000-0xfeefffff from translation
as it is the q35 interrupt region.

We advertise features that are not yet implemented to please
the Linux IOMMU driver.

IOTLB aims at implementing commands on real IOMMUs which is
essential for debugging and may not offer any performance
benefits

Signed-off-by: David Kiarie <davidkiarie4@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/Makefile.objs
hw/i386/amd_iommu.c [new file with mode: 0644]
hw/i386/amd_iommu.h [new file with mode: 0644]