Re: [Xen-devel] [PATCH RFC 1/2] usbif.h: don't require PAGE_SIZE to be present

2016-10-19 Thread Stefano Stabellini
On Wed, 19 Oct 2016, David Vrabel wrote: > On 19/10/16 11:46, Wei Liu wrote: > > If it is present, use it; otherwise use 4096. Also provide two new > > macros to let user have control over the page size used to do > > calculation. > [...] > > index 4053c24..ac38318 100644 > > --- a/xen/include/publ

Re: [Xen-devel] [PATCH RFC 1/2] usbif.h: don't require PAGE_SIZE to be present

2016-10-19 Thread David Vrabel
On 19/10/16 11:46, Wei Liu wrote: > If it is present, use it; otherwise use 4096. Also provide two new > macros to let user have control over the page size used to do > calculation. [...] > index 4053c24..ac38318 100644 > --- a/xen/include/public/io/usbif.h > +++ b/xen/include/public/io/usbif.h > @

Re: [Xen-devel] [PATCH RFC 1/2] usbif.h: don't require PAGE_SIZE to be present

2016-10-19 Thread Wei Liu
On Wed, Oct 19, 2016 at 12:45:31PM +0100, Andrew Cooper wrote: > On 19/10/16 11:46, Wei Liu wrote: > > If it is present, use it; otherwise use 4096. Also provide two new > > macros to let user have control over the page size used to do > > calculation. > > > > Signed-off-by: Wei Liu > > --- > > Cc

Re: [Xen-devel] [PATCH RFC 1/2] usbif.h: don't require PAGE_SIZE to be present

2016-10-19 Thread Andrew Cooper
On 19/10/16 11:46, Wei Liu wrote: > If it is present, use it; otherwise use 4096. Also provide two new > macros to let user have control over the page size used to do > calculation. > > Signed-off-by: Wei Liu > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > C

[Xen-devel] [PATCH RFC 1/2] usbif.h: don't require PAGE_SIZE to be present

2016-10-19 Thread Wei Liu
If it is present, use it; otherwise use 4096. Also provide two new macros to let user have control over the page size used to do calculation. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: T