aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/grant_table.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-05 10:44:39 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-05 10:44:39 +0000
commit9ad9a1609fbe407bde40498428ec465a6bd977a8 (patch)
treec41f096fcc2c138666d30bbbcfc8e3e7de4991a9 /xen/include/xen/grant_table.h
parent41aa0b62699ecc9ac49ef3456b165c218aaeaaca (diff)
downloadxen-9ad9a1609fbe407bde40498428ec465a6bd977a8.tar.gz
xen-9ad9a1609fbe407bde40498428ec465a6bd977a8.tar.bz2
xen-9ad9a1609fbe407bde40498428ec465a6bd977a8.zip
PoD memory 5/9: emergency scan
Implement "emergency scan" for zero pages, to deal with start-of-day page scrubbers. If the cache is running out, scan through memory looking for "zero pages" that we can reclaim for the cache. This is necessary for operating systems which have a start-of-day page scrubber which runs before the balloon driver can balloon down to the target. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/xen/grant_table.h')
-rw-r--r--xen/include/xen/grant_table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h
index 0164668e2c..85a7c17592 100644
--- a/xen/include/xen/grant_table.h
+++ b/xen/include/xen/grant_table.h
@@ -32,6 +32,7 @@
struct active_grant_entry {
u32 pin; /* Reference count information. */
domid_t domid; /* Domain being granted access. */
+ unsigned long gfn; /* Guest's idea of the frame being granted. */
unsigned long frame; /* Frame being granted. */
};
@@ -146,4 +147,7 @@ nr_active_grant_frames(struct grant_table *gt)
return num_act_frames_from_sha_frames(nr_grant_frames(gt));
}
+int
+gnttab_is_granted(struct domain *d, xen_pfn_t gfn, int order);
+
#endif /* __XEN_GRANT_TABLE_H__ */