Re: [Qemu-devel] [PATCH v2] exec: fix address_space_get_iotlb_entry page mask

2017-05-30 Thread Peter Xu
On Tue, May 30, 2017 at 06:23:14PM +0200, Paolo Bonzini wrote: > > > On 29/05/2017 06:02, Peter Xu wrote: > > The IOTLB that it returned didn't guarantee that page_mask is indeed a > > so-called page mask. That won't affect current usage since now only > > vhost is using it (vhost API allows arbi

Re: [Qemu-devel] [PATCH v2] exec: fix address_space_get_iotlb_entry page mask

2017-05-30 Thread Paolo Bonzini
On 29/05/2017 06:02, Peter Xu wrote: > The IOTLB that it returned didn't guarantee that page_mask is indeed a > so-called page mask. That won't affect current usage since now only > vhost is using it (vhost API allows arbitary IOTLB range). However we > have IOTLB scemantic and we should best fol

[Qemu-devel] [PATCH v2] exec: fix address_space_get_iotlb_entry page mask

2017-05-28 Thread Peter Xu
The IOTLB that it returned didn't guarantee that page_mask is indeed a so-called page mask. That won't affect current usage since now only vhost is using it (vhost API allows arbitary IOTLB range). However we have IOTLB scemantic and we should best follow it. This patch fixes this issue to make sur