[openib-general] Re: Re: Re: madvise MADV_DONTFORK/MADV_DOFORK

Michael S. Tsirkin mst at mellanox.co.il
Wed Feb 15 06:36:22 PST 2006


Quoting r. Gleb Natapov <glebn at voltaire.com>:
> > ibv_reg_mr works fine for sub-page regions. Doesnt it?
> > 
> Not really. It gives you the impression that it works by not returning an
> error and aligning address and lengths for you. Same case with mmap(). You
> can provide nonaligned length and it will not fail.

As far as I know hardware supports non-aligned regions and so does ibv_reg_mr:
try to access outside the region and you'll get completion with error.
No? If not, let me know - it should be easy to fix.

-- 
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies



More information about the general mailing list