qemu-e2k/include/hw/virtio
Eric Auger cfb42188b2 virtio-iommu: Implement attach/detach command
This patch implements the endpoint attach/detach to/from
a domain.

Domain and endpoint internal datatypes are introduced.
Both are stored in RB trees. The domain owns a list of
endpoints attached to it. Also helpers to get/put
end points and domains are introduced.

As for the IOMMU memory regions, a callback is called on
PCI bus enumeration that initializes for a given device
on the bus hierarchy an IOMMU memory region. The PCI bus
hierarchy is stored locally in IOMMUPciBus and IOMMUDevice
objects.

At the time of the enumeration, the bus number may not be
computed yet.

So operations that will need to retrieve the IOMMUdevice
and its IOMMU memory region from the bus number and devfn,
once the bus number is garanteed to be frozen, use an array
of IOMMUPciBus, lazily populated.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

Message-Id: <20200214132745.23392-4-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-02-27 03:46:10 -05:00
..
vhost-backend.h
vhost-scsi-common.h
vhost-scsi.h
vhost-user-blk.h vhost-user-blk: convert to new virtio_delete_queue 2020-02-25 08:32:56 -05:00
vhost-user-fs.h vhost-user-fs: convert to the new virtio_delete_queue function 2020-02-25 08:32:45 -05:00
vhost-user-scsi.h
vhost-user.h
vhost-vsock.h vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks 2020-01-22 00:23:07 -05:00
vhost.h
virtio-access.h
virtio-balloon.h
virtio-blk.h virtio: make seg_max virtqueue size dependent 2020-01-06 12:04:43 -05:00
virtio-bus.h
virtio-crypto.h
virtio-gpu-bswap.h
virtio-gpu-pci.h
virtio-gpu-pixman.h
virtio-gpu.h
virtio-input.h
virtio-iommu.h virtio-iommu: Implement attach/detach command 2020-02-27 03:46:10 -05:00
virtio-mmio.h
virtio-net.h
virtio-pmem.h
virtio-rng.h
virtio-scsi.h virtio: make seg_max virtqueue size dependent 2020-01-06 12:04:43 -05:00
virtio-serial.h
virtio.h