[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v15 3/9] virtio-iommu: Implement attach/detach command
From: |
Peter Xu |
Subject: |
Re: [PATCH v15 3/9] virtio-iommu: Implement attach/detach command |
Date: |
Sat, 8 Feb 2020 08:41:54 -0500 |
On Sat, Feb 08, 2020 at 01:00:16PM +0100, Eric Auger wrote:
> 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 <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
(Hope this is the last one missing r-b besides patch 8, I'll leave
patch 8 for the others or Michael when merging)
Thanks,
--
Peter Xu
- [PATCH v15 0/9] VIRTIO-IOMMU device, Eric Auger, 2020/02/08
- [PATCH v15 1/9] virtio-iommu: Add skeleton, Eric Auger, 2020/02/08
- [PATCH v15 2/9] virtio-iommu: Decode the command payload, Eric Auger, 2020/02/08
- [PATCH v15 3/9] virtio-iommu: Implement attach/detach command, Eric Auger, 2020/02/08
- Re: [PATCH v15 3/9] virtio-iommu: Implement attach/detach command,
Peter Xu <=
- [PATCH v15 4/9] virtio-iommu: Implement map/unmap, Eric Auger, 2020/02/08
- [PATCH v15 5/9] virtio-iommu: Implement translate, Eric Auger, 2020/02/08
- [PATCH v15 6/9] virtio-iommu: Implement fault reporting, Eric Auger, 2020/02/08
- [PATCH v15 7/9] virtio-iommu-pci: Add virtio iommu pci support, Eric Auger, 2020/02/08
- [PATCH v15 8/9] hw/arm/virt: Add the virtio-iommu device tree mappings, Eric Auger, 2020/02/08
- [PATCH v15 9/9] virtio-iommu: Support migration, Eric Auger, 2020/02/08