RE: [PATCH 1/3] virtio-iommu: Add bypass mode support to assigned device

2022-06-24 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Friday, June 24, 2022 12:52 AM >To: Duan, Zhenzhong >Cc: qemu-devel@nongnu.org; m...@redhat.com; jean-phili...@linaro.org; >pbonz...@redhat.com; Zhang, Yu C ; Dong, >Chuanxiao ; Zhang, Tina > >Subject: Re: [PATCH 1/

Re: [PATCH 1/3] virtio-iommu: Add bypass mode support to assigned device

2022-06-23 Thread Eric Auger
Hi, On 6/13/22 08:10, Zhenzhong Duan wrote: > Currently assigned devices can not work in virtio-iommu bypass mode. > Guest driver fails to probe the device due to DMA failure. And the > reason is because of lacking GPA -> HPA mappings when VM is created. > > Add a root container memory region to ho

[PATCH 1/3] virtio-iommu: Add bypass mode support to assigned device

2022-06-12 Thread Zhenzhong Duan
Currently assigned devices can not work in virtio-iommu bypass mode. Guest driver fails to probe the device due to DMA failure. And the reason is because of lacking GPA -> HPA mappings when VM is created. Add a root container memory region to hold both bypass memory region and iommu memory region,