Re: [PATCH 12/16] IB uverbs: add mthca user PD support

From: Roland Dreier
Date: Wed Jun 29 2005 - 11:18:47 EST


Andrew> What is a userspace protection domain?

A protection domain is an abstraction enforced by IB hardware --
loosely put, every resource (work queue, memory region, etc) in put in
a PD when it is created, and different resources can only see each
other if they belong to the same PD.

As an example, PDs are needed because IB allows unprivileged processes
to directly post requests to work queues. Work requests refer to
memory regions by memory keys (32 bit cookies). Without PDs, a
process could get access to another process's memory region if it
could guess the 32-bit key -- with PDs, it can't because the other
process's memory region will be in a different PD from its work queue.

- R.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/