]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Add device management functions for amd_iommu
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 15 Jul 2015 19:13:05 +0000 (00:13 +0500)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 16 Mar 2016 08:23:48 +0000 (09:23 +0100)
commitc9f1e24bd43ac8a822be2c678b4e93445996ec1e
treeea490160608b9b8082b4a6b6c4bd7b69b840b7ba
parentb57fd97a04c1fa9932ad9d55c9227b034f90e057
x86: Add device management functions for amd_iommu

Implement iommu_add_pci_device() for amd_iommu.

Basically, this is all about filling DTE entry. However, there is no way
to allocate device tables sparsely with ADM IOMMU. To save some memory,
Device Table Segmentation (Revision 2.6 and up) is used whenever possible,
and this adds some infrastructure.

Based on patch by Valentine Sinitsyn.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/amd_iommu.c