Re: [Qemu-devel] [PATCH 2/2] pci: introduce a bus master container

2017-03-13 Thread Marcel Apfelbaum
On 03/13/2017 11:52 AM, Paolo Bonzini wrote: On 13/03/2017 10:38, Marcel Apfelbaum wrote: On 03/13/2017 05:29 AM, Jason Wang wrote: 96a8821d2141 ("virtio: unbreak virtio-pci with IOMMU after caching ring translations") tries to make IOMMU works with virtio memory region cache, but it requires

Re: [Qemu-devel] [PATCH 2/2] pci: introduce a bus master container

2017-03-13 Thread Paolo Bonzini
On 13/03/2017 10:38, Marcel Apfelbaum wrote: > On 03/13/2017 05:29 AM, Jason Wang wrote: >> 96a8821d2141 ("virtio: unbreak virtio-pci with IOMMU after caching ring >> translations") tries to make IOMMU works with virtio memory region >> cache, but it requires IOMMU to be created before any virtio

Re: [Qemu-devel] [PATCH 2/2] pci: introduce a bus master container

2017-03-13 Thread Marcel Apfelbaum
On 03/13/2017 05:29 AM, Jason Wang wrote: 96a8821d2141 ("virtio: unbreak virtio-pci with IOMMU after caching ring translations") tries to make IOMMU works with virtio memory region cache, but it requires IOMMU to be created before any virtio devices. This is sub optimal, fixing this by introduce

Re: [Qemu-devel] [PATCH 2/2] pci: introduce a bus master container

2017-03-13 Thread Paolo Bonzini
On 13/03/2017 04:29, Jason Wang wrote: > 96a8821d2141 ("virtio: unbreak virtio-pci with IOMMU after caching ring > translations") tries to make IOMMU works with virtio memory region > cache, but it requires IOMMU to be created before any virtio > devices. This is sub optimal, fixing this by intro

[Qemu-devel] [PATCH 2/2] pci: introduce a bus master container

2017-03-12 Thread Jason Wang
96a8821d2141 ("virtio: unbreak virtio-pci with IOMMU after caching ring translations") tries to make IOMMU works with virtio memory region cache, but it requires IOMMU to be created before any virtio devices. This is sub optimal, fixing this by introduce a bus master container to make sure address