Re: [Xen-devel] [PATCH for-4.11] libs/gnttab: fix FreeBSD gntdev interface

2018-04-19 Thread Wei Liu
On Thu, Apr 19, 2018 at 09:35:44AM +0100, Roger Pau Monné wrote: > On Thu, Apr 19, 2018 at 09:10:56AM +0100, Wei Liu wrote: > > On Tue, Apr 17, 2018 at 02:03:41PM +0100, Roger Pau Monne wrote: > > > Current interface to the gntdev in FreeBSD is wrong, and mostly worked > > > out of luck before the

Re: [Xen-devel] [PATCH for-4.11] libs/gnttab: fix FreeBSD gntdev interface

2018-04-19 Thread Roger Pau Monné
On Thu, Apr 19, 2018 at 09:10:56AM +0100, Wei Liu wrote: > On Tue, Apr 17, 2018 at 02:03:41PM +0100, Roger Pau Monne wrote: > > Current interface to the gntdev in FreeBSD is wrong, and mostly worked > > out of luck before the PTI FreeBSD fixes, when kernel and user-space > > where sharing the same

Re: [Xen-devel] [PATCH for-4.11] libs/gnttab: fix FreeBSD gntdev interface

2018-04-17 Thread Juergen Gross
On 17/04/18 15:03, Roger Pau Monne wrote: > Current interface to the gntdev in FreeBSD is wrong, and mostly worked > out of luck before the PTI FreeBSD fixes, when kernel and user-space > where sharing the same page tables. > > On FreeBSD ioctls have the size of the passed struct encoded in the

[Xen-devel] [PATCH for-4.11] libs/gnttab: fix FreeBSD gntdev interface

2018-04-17 Thread Roger Pau Monne
Current interface to the gntdev in FreeBSD is wrong, and mostly worked out of luck before the PTI FreeBSD fixes, when kernel and user-space where sharing the same page tables. On FreeBSD ioctls have the size of the passed struct encoded in the ioctl number, because the generic ioctl handler in