search for: vhost_mem_max_nregions_default

Displaying 8 results from an estimated 8 matches for "vhost_mem_max_nregions_default".

2015 Jun 24
2
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...OST_GET_MEM_MAX_NREGIONS to mean there's no static limit: + * try and it'll work if you are lucky. */ +#define VHOST_MEM_MAX_NREGIONS_NONE 0 +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 + /* VHOST_NET specific defines */ /* Attach virtio net ring to a raw socket, or tap device. diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 9e8e004..3b68f9d 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -917,6 +917,11 @@ long vhost_dev_ioctl(struct vhost...
2015 Jun 24
2
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...OST_GET_MEM_MAX_NREGIONS to mean there's no static limit: + * try and it'll work if you are lucky. */ +#define VHOST_MEM_MAX_NREGIONS_NONE 0 +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 + /* VHOST_NET specific defines */ /* Attach virtio net ring to a raw socket, or tap device. diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 9e8e004..3b68f9d 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -917,6 +917,11 @@ long vhost_dev_ioctl(struct vhost...
2015 Jun 24
2
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...ONE 0 > is it needed? we always have a limit, > or don't have IOCTL => -1 => old try and see way > > > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 > ^^^ not used below, > if it's for legacy then perhaps s/DEFAULT/LEGACY/ The assumption was that userspace detecting old kernels will just use 64, this means we do want a flag to get the old way. OTOH if you won't think it's useful, let me know. > > + > > /* V...
2015 Jun 24
2
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...ONE 0 > is it needed? we always have a limit, > or don't have IOCTL => -1 => old try and see way > > > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 > ^^^ not used below, > if it's for legacy then perhaps s/DEFAULT/LEGACY/ The assumption was that userspace detecting old kernels will just use 64, this means we do want a flag to get the old way. OTOH if you won't think it's useful, let me know. > > + > > /* V...
2015 Jun 24
1
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...gt; > > or don't have IOCTL => -1 => old try and see way > > > > > > > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > > > > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > > > > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 > > > ^^^ not used below, > > > if it's for legacy then perhaps s/DEFAULT/LEGACY/ > > > > The assumption was that userspace detecting old kernels will just use 64, > > this means we do want a flag to get the old way. > > > > OTOH if you won&...
2015 Jun 24
1
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...gt; > > or don't have IOCTL => -1 => old try and see way > > > > > > > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > > > > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > > > > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 > > > ^^^ not used below, > > > if it's for legacy then perhaps s/DEFAULT/LEGACY/ > > > > The assumption was that userspace detecting old kernels will just use 64, > > this means we do want a flag to get the old way. > > > > OTOH if you won&...
2015 Jun 24
0
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...efine VHOST_MEM_MAX_NREGIONS_NONE 0 is it needed? we always have a limit, or don't have IOCTL => -1 => old try and see way > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 ^^^ not used below, if it's for legacy then perhaps s/DEFAULT/LEGACY/ > + > /* VHOST_NET specific defines */ > > /* Attach virtio net ring to a raw socket, or tap device. > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index 9e8e004..3b68f9d 100644 >...
2015 Jun 24
0
[PATCH RFC] vhost: add ioctl to query nregions upper limit
...we always have a limit, > > or don't have IOCTL => -1 => old try and see way > > > > > +/* We support at least as many nregions in VHOST_SET_MEM_TABLE: > > > + * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ > > > +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 > > ^^^ not used below, > > if it's for legacy then perhaps s/DEFAULT/LEGACY/ > > The assumption was that userspace detecting old kernels will just use 64, > this means we do want a flag to get the old way. > > OTOH if you won't think it's useful, let me...