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 

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

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-13 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

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

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

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 

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

2024-05-09 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

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

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

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

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

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

2024-04-12 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

[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