diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-11-20 17:02:45 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-11-20 17:02:45 +0100 |
commit | f994788c5e4cd25e5b67b93a6a9c68491082277f (patch) | |
tree | fbf6a0bced819d76517356d550ac0eab06b4c718 /tools/xenpaging/policy_default.c | |
parent | 8a8d8fc344416a6ddb6472906ecebbeaafab6d2f (diff) | |
download | xen-f994788c5e4cd25e5b67b93a6a9c68491082277f.tar.gz xen-f994788c5e4cd25e5b67b93a6a9c68491082277f.tar.bz2 xen-f994788c5e4cd25e5b67b93a6a9c68491082277f.zip |
xenpaging: use guests tot_pages as working target
This change reverses the task of xenpaging. Before this change a fixed number
of pages was paged out. With this change the guest will not have access to
more than the given number of pages at the same time.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/xenpaging/policy_default.c')
-rw-r--r-- | tools/xenpaging/policy_default.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/xenpaging/policy_default.c b/tools/xenpaging/policy_default.c index 57da85d076..0285d0dd8a 100644 --- a/tools/xenpaging/policy_default.c +++ b/tools/xenpaging/policy_default.c @@ -71,7 +71,6 @@ int policy_init(xenpaging_t *paging) /* Start in the middle to avoid paging during BIOS startup */ current_gfn = max_pages / 2; - current_gfn -= paging->num_pages / 2; rc = 0; out: |