mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Grant table updates for block device changes.
- add gnttab_free_grant_reference - make gnttab_free_grant_references interface consistent with other gnttab functions - add support for callback when references are freed Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
279198e896
commit
3c047eef3c
2 files changed
+53
-9
No files matched your search
@@ -21,6 +21,13 @@
|
||||
#define NR_GRANT_FRAMES 4
|
||||
#define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * PAGE_SIZE / sizeof(grant_entry_t))
|
||||
|
||||
struct work_struct;
|
||||
|
||||
struct gnttab_free_callback {
|
||||
struct gnttab_free_callback *next;
|
||||
struct work_struct *work;
|
||||
};
|
||||
|
||||
int
|
||||
gnttab_grant_foreign_access(
|
||||
domid_t domid, unsigned long frame, int readonly);
|
||||
@@ -48,9 +55,13 @@ int
|
||||
gnttab_alloc_grant_references(
|
||||
u16 count, grant_ref_t *pprivate_head, grant_ref_t *private_terminal );
|
||||
|
||||
void
|
||||
gnttab_free_grant_reference(
|
||||
grant_ref_t ref );
|
||||
|
||||
void
|
||||
gnttab_free_grant_references(
|
||||
u16 count, grant_ref_t private_head );
|
||||
grant_ref_t *head, grant_ref_t terminal );
|
||||
|
||||
int
|
||||
gnttab_claim_grant_reference( grant_ref_t *pprivate_head, grant_ref_t terminal
|
||||
@@ -60,6 +71,10 @@ void
|
||||
gnttab_release_grant_reference(
|
||||
grant_ref_t *private_head, grant_ref_t release );
|
||||
|
||||
void
|
||||
gnttab_request_free_callback(
|
||||
struct gnttab_free_callback *callback, struct work_struct *work );
|
||||
|
||||
void
|
||||
gnttab_grant_foreign_access_ref(
|
||||
grant_ref_t ref, domid_t domid, unsigned long frame, int readonly);
|
||||
|
||||