]> git.proxmox.com Git - mirror_qemu.git/commit
intel_iommu: Add support for translation for devices behind bridges
authorKnut Omang <knut.omang@oracle.com>
Sun, 4 Oct 2015 13:48:50 +0000 (15:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 18 Oct 2015 07:05:43 +0000 (10:05 +0300)
commit7df953bd456da45f761064974820ab5c3fd7b2aa
tree019a1f6e52d28c39082aa40b79598e0b581ffefc
parent6d57410a79d51d92673c54f26624b44f27fa6214
intel_iommu: Add support for translation for devices behind bridges

- Use a hash table indexed on bus pointers to store information about buses
  instead of using the bus numbers.
  Bus pointers are stored in a new VTDBus struct together with the vector
  of device address space pointers indexed by devfn.
- The bus number is still used for lookup for selective SID based invalidate,
  in which case the bus number is lazily resolved from the bus hash table and
  cached in a separate index.

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
hw/pci-host/q35.c
include/hw/i386/intel_iommu.h