Re: [PATCH v2 08/14] util: Add iova_tree_alloc

2022-03-02 Thread Jason Wang
在 2022/3/1 下午6:06, Eugenio Perez Martin 写道: + +/* + * Find a valid hole for the mapping + * + * Assuming low iova_begin, so no need to do a binary search to + * locate the first node. + * + * TODO: Replace all this with g_tree_node_first/next/last when available +

Re: [PATCH v2 08/14] util: Add iova_tree_alloc

2022-03-01 Thread Eugenio Perez Martin
On Mon, Feb 28, 2022 at 7:39 AM Jason Wang wrote: > > > 在 2022/2/27 下午9:41, Eugenio Pérez 写道: > > This iova tree function allows it to look for a hole in allocated > > regions and return a totally new translation for a given translated > > address. > > > > It's usage is mainly to allow devices to

Re: [PATCH v2 08/14] util: Add iova_tree_alloc

2022-02-27 Thread Jason Wang
在 2022/2/27 下午9:41, Eugenio Pérez 写道: This iova tree function allows it to look for a hole in allocated regions and return a totally new translation for a given translated address. It's usage is mainly to allow devices to access qemu address space, remapping guest's one into a new iova space w

[PATCH v2 08/14] util: Add iova_tree_alloc

2022-02-27 Thread Eugenio Pérez
This iova tree function allows it to look for a hole in allocated regions and return a totally new translation for a given translated address. It's usage is mainly to allow devices to access qemu address space, remapping guest's one into a new iova space where qemu can add chunks of addresses. Si