[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v15 3/9] virtio-iommu: Implement attach/detach command
From: |
Auger Eric |
Subject: |
Re: [PATCH v15 3/9] virtio-iommu: Implement attach/detach command |
Date: |
Sat, 8 Feb 2020 15:00:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Hi Peter,
On 2/8/20 2:41 PM, Peter Xu wrote:
> 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)
Sure. Many thanks!
Best Regards
Eric
>
> Thanks,
>
- [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
- [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