Re: [RFC PATCH] vhost-vdpa: Do not send empty IOTLB update batches

2021-08-11 Thread Eugenio Perez Martin
On Thu, Aug 5, 2021 at 9:10 AM Jason Wang wrote: > > > 在 2021/8/5 下午3:04, Eugenio Perez Martin 写道: > > On Thu, Aug 5, 2021 at 8:16 AM Jason Wang wrote: > >> On Wed, Aug 4, 2021 at 10:44 PM Eugenio Pérez wrote: > >>> With the introduction of the batch hinting, meaningless batches can be > >>> cre

Re: [RFC PATCH] vhost-vdpa: Do not send empty IOTLB update batches

2021-08-05 Thread Jason Wang
在 2021/8/5 下午3:04, Eugenio Perez Martin 写道: On Thu, Aug 5, 2021 at 8:16 AM Jason Wang wrote: On Wed, Aug 4, 2021 at 10:44 PM Eugenio Pérez wrote: With the introduction of the batch hinting, meaningless batches can be created with no IOTLB updates if the memory region was skipped by vhost_vd

Re: [RFC PATCH] vhost-vdpa: Do not send empty IOTLB update batches

2021-08-05 Thread Eugenio Perez Martin
On Thu, Aug 5, 2021 at 8:16 AM Jason Wang wrote: > > On Wed, Aug 4, 2021 at 10:44 PM Eugenio Pérez wrote: > > > > With the introduction of the batch hinting, meaningless batches can be > > created with no IOTLB updates if the memory region was skipped by > > vhost_vdpa_listener_skipped_section. T

Re: [RFC PATCH] vhost-vdpa: Do not send empty IOTLB update batches

2021-08-04 Thread Jason Wang
On Wed, Aug 4, 2021 at 10:44 PM Eugenio Pérez wrote: > > With the introduction of the batch hinting, meaningless batches can be > created with no IOTLB updates if the memory region was skipped by > vhost_vdpa_listener_skipped_section. This is the case of host notifiers > memory regions, but others

[RFC PATCH] vhost-vdpa: Do not send empty IOTLB update batches

2021-08-04 Thread Eugenio Pérez
With the introduction of the batch hinting, meaningless batches can be created with no IOTLB updates if the memory region was skipped by vhost_vdpa_listener_skipped_section. This is the case of host notifiers memory regions, but others could fall on this category. This caused the vdpa device to rec