Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-08-01 Thread Si-Wei Liu
On 8/1/2024 1:22 AM, Eugenio Perez Martin wrote: On Thu, Aug 1, 2024 at 2:41 AM Si-Wei Liu wrote: Hi Jonah, On 7/31/2024 7:09 AM, Jonah Palmer wrote: Let me clarify, correct me if I was wrong: 1) IOVA allocator is still implemented via a tree, we just don't need to store how the IOVA is u

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-08-01 Thread Eugenio Perez Martin
On Thu, Aug 1, 2024 at 2:41 AM Si-Wei Liu wrote: > > Hi Jonah, > > On 7/31/2024 7:09 AM, Jonah Palmer wrote: > > > >> Let me clarify, correct me if I was wrong: > >> > >> 1) IOVA allocator is still implemented via a tree, we just > >> don't need > >> to stor

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-31 Thread Si-Wei Liu
Hi Jonah, On 7/31/2024 7:09 AM, Jonah Palmer wrote: Let me clarify, correct me if I was wrong: 1) IOVA allocator is still implemented via a tree, we just don't need to store how the IOVA is used 2) A dedicated GPA -> IOVA tree, updated via listeners and is used in the datapath SVQ transla

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-31 Thread Jonah Palmer
On 7/31/24 5:56 AM, Eugenio Perez Martin wrote: On Tue, Jul 30, 2024 at 2:32 PM Jonah Palmer wrote: On 7/30/24 7:00 AM, Eugenio Perez Martin wrote: On Tue, Jul 30, 2024 at 10:48 AM Jason Wang wrote: On Mon, Jul 29, 2024 at 6:05 PM Eugenio Perez Martin wrote: On Wed, Jul 24, 2024 at

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-31 Thread Eugenio Perez Martin
On Tue, Jul 30, 2024 at 2:32 PM Jonah Palmer wrote: > > > > On 7/30/24 7:00 AM, Eugenio Perez Martin wrote: > > On Tue, Jul 30, 2024 at 10:48 AM Jason Wang wrote: > >> > >> On Mon, Jul 29, 2024 at 6:05 PM Eugenio Perez Martin > >> wrote: > >>> > >>> On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-30 Thread Jonah Palmer
On 7/30/24 7:00 AM, Eugenio Perez Martin wrote: On Tue, Jul 30, 2024 at 10:48 AM Jason Wang wrote: On Mon, Jul 29, 2024 at 6:05 PM Eugenio Perez Martin wrote: On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer wrote: On 5/13/24 11:56 PM, Jason Wang wrote: On Mon, May 13, 2024 at 5:58 PM

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-30 Thread Eugenio Perez Martin
On Tue, Jul 30, 2024 at 10:48 AM Jason Wang wrote: > > On Mon, Jul 29, 2024 at 6:05 PM Eugenio Perez Martin > wrote: > > > > On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer > > wrote: > > > > > > > > > > > > On 5/13/24 11:56 PM, Jason Wang wrote: > > > > On Mon, May 13, 2024 at 5:58 PM Eugenio Per

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-30 Thread Jason Wang
On Mon, Jul 29, 2024 at 6:05 PM Eugenio Perez Martin wrote: > > On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer wrote: > > > > > > > > On 5/13/24 11:56 PM, Jason Wang wrote: > > > On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin > > > wrote: > > >> > > >> On Mon, May 13, 2024 at 10:28 AM Jason

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-29 Thread Jonah Palmer
On 7/29/24 2:20 PM, Eugenio Perez Martin wrote: On Mon, Jul 29, 2024 at 7:50 PM Jonah Palmer wrote: On 7/29/24 6:04 AM, Eugenio Perez Martin wrote: On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer wrote: On 5/13/24 11:56 PM, Jason Wang wrote: On Mon, May 13, 2024 at 5:58 PM Eugenio Per

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-29 Thread Eugenio Perez Martin
On Mon, Jul 29, 2024 at 7:50 PM Jonah Palmer wrote: > > > > On 7/29/24 6:04 AM, Eugenio Perez Martin wrote: > > On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer > > wrote: > >> > >> > >> > >> On 5/13/24 11:56 PM, Jason Wang wrote: > >>> On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin > >>> wro

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-29 Thread Jonah Palmer
On 7/29/24 6:04 AM, Eugenio Perez Martin wrote: On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer wrote: On 5/13/24 11:56 PM, Jason Wang wrote: On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin wrote: On Mon, May 13, 2024 at 10:28 AM Jason Wang wrote: On Mon, May 13, 2024 at 2:28 PM

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-29 Thread Eugenio Perez Martin
On Wed, Jul 24, 2024 at 7:00 PM Jonah Palmer wrote: > > > > On 5/13/24 11:56 PM, Jason Wang wrote: > > On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin > > wrote: > >> > >> On Mon, May 13, 2024 at 10:28 AM Jason Wang wrote: > >>> > >>> On Mon, May 13, 2024 at 2:28 PM Eugenio Perez Martin > >

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-07-24 Thread Jonah Palmer
On 5/13/24 11:56 PM, Jason Wang wrote: On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin wrote: On Mon, May 13, 2024 at 10:28 AM Jason Wang wrote: On Mon, May 13, 2024 at 2:28 PM Eugenio Perez Martin wrote: On Sat, May 11, 2024 at 6:07 AM Jason Wang wrote: On Fri, May 10, 2024 a

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-13 Thread Jason Wang
On Mon, May 13, 2024 at 5:58 PM Eugenio Perez Martin wrote: > > On Mon, May 13, 2024 at 10:28 AM Jason Wang wrote: > > > > On Mon, May 13, 2024 at 2:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Sat, May 11, 2024 at 6:07 AM Jason Wang wrote: > > > > > > > > On Fri, May 10, 2024 at 3:16 P

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-13 Thread Eugenio Perez Martin
On Mon, May 13, 2024 at 10:28 AM Jason Wang wrote: > > On Mon, May 13, 2024 at 2:28 PM Eugenio Perez Martin > wrote: > > > > On Sat, May 11, 2024 at 6:07 AM Jason Wang wrote: > > > > > > On Fri, May 10, 2024 at 3:16 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Fri, May 10, 2024 at 6:

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-13 Thread Jason Wang
On Mon, May 13, 2024 at 2:28 PM Eugenio Perez Martin wrote: > > On Sat, May 11, 2024 at 6:07 AM Jason Wang wrote: > > > > On Fri, May 10, 2024 at 3:16 PM Eugenio Perez Martin > > wrote: > > > > > > On Fri, May 10, 2024 at 6:29 AM Jason Wang wrote: > > > > > > > > On Thu, May 9, 2024 at 3:10 PM

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-12 Thread Eugenio Perez Martin
On Sat, May 11, 2024 at 6:07 AM Jason Wang wrote: > > On Fri, May 10, 2024 at 3:16 PM Eugenio Perez Martin > wrote: > > > > On Fri, May 10, 2024 at 6:29 AM Jason Wang wrote: > > > > > > On Thu, May 9, 2024 at 3:10 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Thu, May 9, 2024 at 8:27

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-10 Thread Jason Wang
On Fri, May 10, 2024 at 3:16 PM Eugenio Perez Martin wrote: > > On Fri, May 10, 2024 at 6:29 AM Jason Wang wrote: > > > > On Thu, May 9, 2024 at 3:10 PM Eugenio Perez Martin > > wrote: > > > > > > On Thu, May 9, 2024 at 8:27 AM Jason Wang wrote: > > > > > > > > On Thu, May 9, 2024 at 1:16 AM E

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-10 Thread Eugenio Perez Martin
On Fri, May 10, 2024 at 6:29 AM Jason Wang wrote: > > On Thu, May 9, 2024 at 3:10 PM Eugenio Perez Martin > wrote: > > > > On Thu, May 9, 2024 at 8:27 AM Jason Wang wrote: > > > > > > On Thu, May 9, 2024 at 1:16 AM Eugenio Perez Martin > > > wrote: > > > > > > > > On Wed, May 8, 2024 at 4:29 

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-09 Thread Jason Wang
On Thu, May 9, 2024 at 3:10 PM Eugenio Perez Martin wrote: > > On Thu, May 9, 2024 at 8:27 AM Jason Wang wrote: > > > > On Thu, May 9, 2024 at 1:16 AM Eugenio Perez Martin > > wrote: > > > > > > On Wed, May 8, 2024 at 4:29 AM Jason Wang wrote: > > > > > > > > On Tue, May 7, 2024 at 6:57 PM Eug

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-09 Thread Eugenio Perez Martin
On Thu, May 9, 2024 at 8:27 AM Jason Wang wrote: > > On Thu, May 9, 2024 at 1:16 AM Eugenio Perez Martin > wrote: > > > > On Wed, May 8, 2024 at 4:29 AM Jason Wang wrote: > > > > > > On Tue, May 7, 2024 at 6:57 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Tue, May 7, 2024 at 9:29 A

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-08 Thread Jason Wang
On Thu, May 9, 2024 at 1:16 AM Eugenio Perez Martin wrote: > > On Wed, May 8, 2024 at 4:29 AM Jason Wang wrote: > > > > On Tue, May 7, 2024 at 6:57 PM Eugenio Perez Martin > > wrote: > > > > > > On Tue, May 7, 2024 at 9:29 AM Jason Wang wrote: > > > > > > > > On Fri, Apr 12, 2024 at 3:56 PM Eu

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-08 Thread Eugenio Perez Martin
On Wed, May 8, 2024 at 4:29 AM Jason Wang wrote: > > On Tue, May 7, 2024 at 6:57 PM Eugenio Perez Martin > wrote: > > > > On Tue, May 7, 2024 at 9:29 AM Jason Wang wrote: > > > > > > On Fri, Apr 12, 2024 at 3:56 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Fri, Apr 12, 2024 at 8:47 

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-07 Thread Jason Wang
On Tue, May 7, 2024 at 6:57 PM Eugenio Perez Martin wrote: > > On Tue, May 7, 2024 at 9:29 AM Jason Wang wrote: > > > > On Fri, Apr 12, 2024 at 3:56 PM Eugenio Perez Martin > > wrote: > > > > > > On Fri, Apr 12, 2024 at 8:47 AM Jason Wang wrote: > > > > > > > > On Wed, Apr 10, 2024 at 6:03 PM E

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-07 Thread Eugenio Perez Martin
On Tue, May 7, 2024 at 9:29 AM Jason Wang wrote: > > On Fri, Apr 12, 2024 at 3:56 PM Eugenio Perez Martin > wrote: > > > > On Fri, Apr 12, 2024 at 8:47 AM Jason Wang wrote: > > > > > > On Wed, Apr 10, 2024 at 6:03 PM Eugenio Pérez wrote: > > > > > > > > The guest may have overlapped memory regi

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-05-07 Thread Jason Wang
On Fri, Apr 12, 2024 at 3:56 PM Eugenio Perez Martin wrote: > > On Fri, Apr 12, 2024 at 8:47 AM Jason Wang wrote: > > > > On Wed, Apr 10, 2024 at 6:03 PM Eugenio Pérez wrote: > > > > > > The guest may have overlapped memory regions, where different GPA leads > > > to the same HVA. This causes a

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-04-12 Thread Eugenio Perez Martin
On Fri, Apr 12, 2024 at 8:47 AM Jason Wang wrote: > > On Wed, Apr 10, 2024 at 6:03 PM Eugenio Pérez wrote: > > > > The guest may have overlapped memory regions, where different GPA leads > > to the same HVA. This causes a problem when overlapped regions > > (different GPA but same translated HVA

Re: [RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-04-11 Thread Jason Wang
On Wed, Apr 10, 2024 at 6:03 PM Eugenio Pérez wrote: > > The guest may have overlapped memory regions, where different GPA leads > to the same HVA. This causes a problem when overlapped regions > (different GPA but same translated HVA) exists in the tree, as looking > them by HVA will return them

[RFC 0/2] Identify aliased maps in vdpa SVQ iova_tree

2024-04-10 Thread Eugenio Pérez
The guest may have overlapped memory regions, where different GPA leads to the same HVA. This causes a problem when overlapped regions (different GPA but same translated HVA) exists in the tree, as looking them by HVA will return them twice. To solve this, track GPA in the DMA entry that acs as u