[ofa-general] Re: Question about registering the [vdso] memory section in user level

Dotan Barak dotanb at dev.mellanox.co.il
Sun Apr 15 05:54:30 PDT 2007


Michael S. Tsirkin wrote:
>> Quoting Roland Dreier <rdreier at cisco.com>:
>> Subject: Re: Question about registering the [vdso] memory section in user level
>>
>>  > ibv_reg_mr fails for me.
>>  > When i added some debug prints i noticed the failure in file:
>>  > uverbs_mem.c function: get_page_shift,
>>  > find_vma returned NULL.
>>
>> get_page_shift() doesn't appear in the upstream kernel, so this is
>> some patch from OFED breaking things I guess.  Does the test work with
>> an unpatched kernel?
>>     
>
> This is Eli's hpages.patch. But that should only be applied
> if enabled explicitly by install option. How come you get it?
> Vlad?
>   
When i removed the patch locally and executed the test, the function 
get_user_pages failed.
The return value was -14 (EFAULT: bad address).

Does it mean that this address cannot be registered?


thanks
Dotan




More information about the general mailing list