diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-08-20 16:23:45 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-08-20 16:23:45 +0000 |
commit | 1143caf2de0467cec229d3f2b740f86d7530f885 (patch) | |
tree | b6df915b5e7f1a955cd462bf220472eb40aa68c9 /xen/include/xen/grant_table.h | |
parent | 2a7eb6c380b8cc2c0e973d8a2c92b9d47e249dbf (diff) | |
download | xen-1143caf2de0467cec229d3f2b740f86d7530f885.tar.gz xen-1143caf2de0467cec229d3f2b740f86d7530f885.tar.bz2 xen-1143caf2de0467cec229d3f2b740f86d7530f885.zip |
bitkeeper revision 1.1159.48.1 (4126259181cq4hyB3cquYrgpQokAIQ)
Framework for grant-table implementation in Xen.
Diffstat (limited to 'xen/include/xen/grant_table.h')
-rw-r--r-- | xen/include/xen/grant_table.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h new file mode 100644 index 0000000000..92a81de929 --- /dev/null +++ b/xen/include/xen/grant_table.h @@ -0,0 +1,38 @@ +/****************************************************************************** + * include/xen/grant_table.h + * + * Mechanism for granting foreign access to page frames, and receiving + * page-ownership transfers. + * + * Copyright (c) 2004 K A Fraser + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __XEN_GRANT_H__ +#define __XEN_GRANT_H__ + +#ifndef __GRANT_TABLE_IMPLEMENTATION__ +typedef void grant_table_t; +#endif + +/* Start-of-day system initialisation. */ +void grant_table_init(void); + +/* Create/destroy per-domain grant table context. */ +int grant_table_create(struct domain *d); +void grant_table_destroy(struct domain *d); + +#endif /* __XEN_GRANT_H__ */ |