xen/granttable: Support sub-page grants
authorAnnie Li <annie.li@oracle.com>
Mon, 12 Dec 2011 10:14:42 +0000 (18:14 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 16 Dec 2011 16:25:02 +0000 (11:25 -0500)
commit6666754b11297526c699f8df63c52d50c24fe946
treecd850e009e16c4e1e64d91ab66617ac097c89104
parent9dbc71d53ce4e0260d0a8307838cd9ebddc07a12
xen/granttable: Support sub-page grants

- They can't be used to map the page (so can only be used in a GNTTABOP_copy
  hypercall).
- It's possible to grant access with a finer granularity than whole pages.
- Xen guarantees that they can be revoked quickly (a normal map grant can
  only be revoked with the cooperation of the domain which has been granted
  access).

Signed-off-by: Annie Li <annie.li@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/grant-table.c
include/xen/grant_table.h