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

2021-08-15 Thread Jason Wang
在 2021/8/16 下午1:36, Michael S. Tsirkin 写道: On Mon, Aug 16, 2021 at 10:51:57AM +0800, Jason Wang wrote: On Thu, Aug 12, 2021 at 10:09 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 b

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

2021-08-15 Thread Michael S. Tsirkin
On Mon, Aug 16, 2021 at 10:51:57AM +0800, Jason Wang wrote: > On Thu, Aug 12, 2021 at 10:09 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_s

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

2021-08-15 Thread Jason Wang
On Thu, Aug 12, 2021 at 10:09 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, device un

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

2021-08-12 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, device un/realize, and others. This causes the vdpa device to receive dma