Re: [PATCH] vdpa_sim: use iova module to allocate IOVA addresses

2020-12-22 Thread Stefano Garzarella
On Wed, Dec 23, 2020 at 11:43:40AM +0800, Jason Wang wrote: On 2020/12/23 上午1:45, Stefano Garzarella wrote: The identical mapping used until now created issues when mapping different virtual pages with the same physical address. To solve this issue, we can use the iova module, to handle the

Re: [PATCH] vdpa_sim: use iova module to allocate IOVA addresses

2020-12-22 Thread Jason Wang
On 2020/12/23 上午1:45, Stefano Garzarella wrote: The identical mapping used until now created issues when mapping different virtual pages with the same physical address. To solve this issue, we can use the iova module, to handle the IOVA allocation. For semplicity we use an IOVA allocator with

[PATCH] vdpa_sim: use iova module to allocate IOVA addresses

2020-12-22 Thread Stefano Garzarella
The identical mapping used until now created issues when mapping different virtual pages with the same physical address. To solve this issue, we can use the iova module, to handle the IOVA allocation. For semplicity we use an IOVA allocator with byte granularity. We add two new functions,