[openib-general] ibv_reg_mr/ memory locking

Michael S. Tsirkin mst at mellanox.co.il
Mon Jan 24 09:19:34 PST 2005


Hi!

I'm looking at libibverbs/include/infiniband/verbs.h
and I'm wandering what ibv_reg_mr does.

Specifically, if it exposes to the user the ability to lock
raw physical memory, how do you plan to prevent a DOS by
locking all memory?

The architecture document says it is done with mlock from userspace, so 
I thought for a bit that driver may simply require that user mlocks
the relevant memory, but then I understood that 
its easy to bypass by munlocking the registered memory.

MST

-- 
I dont speak for Mellanox.



More information about the general mailing list