blob: b7b9e95f87178313fbb8cfdd01ceecd6d9e3808a [file] [log] [blame]
Dan Magenheimera50777c2011-07-08 12:26:21 -06001/******************************************************************************
2 * Xen selfballoon driver (and optional frontswap self-shrinking driver)
3 *
4 * Copyright (c) 2009-2011, Dan Magenheimer, Oracle Corp.
5 *
6 * This code complements the cleancache and frontswap patchsets to optimize
7 * support for Xen Transcendent Memory ("tmem"). The policy it implements
8 * is rudimentary and will likely improve over time, but it does work well
9 * enough today.
10 *
11 * Two functionalities are implemented here which both use "control theory"
12 * (feedback) to optimize memory utilization. In a virtualized environment
13 * such as Xen, RAM is often a scarce resource and we would like to ensure
14 * that each of a possibly large number of virtual machines is using RAM
15 * efficiently, i.e. using as little as possible when under light load
16 * and obtaining as much as possible when memory demands are high.
17 * Since RAM needs vary highly dynamically and sometimes dramatically,
18 * "hysteresis" is used, that is, memory target is determined not just
19 * on current data but also on past data stored in the system.
20 *
21 * "Selfballooning" creates memory pressure by managing the Xen balloon
22 * driver to decrease and increase available kernel memory, driven
23 * largely by the target value of "Committed_AS" (see /proc/meminfo).
24 * Since Committed_AS does not account for clean mapped pages (i.e. pages
25 * in RAM that are identical to pages on disk), selfballooning has the
26 * affect of pushing less frequently used clean pagecache pages out of
27 * kernel RAM and, presumably using cleancache, into Xen tmem where
28 * Xen can more efficiently optimize RAM utilization for such pages.
29 *
30 * When kernel memory demand unexpectedly increases faster than Xen, via
31 * the selfballoon driver, is able to (or chooses to) provide usable RAM,
32 * the kernel may invoke swapping. In most cases, frontswap is able
33 * to absorb this swapping into Xen tmem. However, due to the fact
34 * that the kernel swap subsystem assumes swapping occurs to a disk,
35 * swapped pages may sit on the disk for a very long time; even if
36 * the kernel knows the page will never be used again. This is because
37 * the disk space costs very little and can be overwritten when
38 * necessary. When such stale pages are in frontswap, however, they
39 * are taking up valuable real estate. "Frontswap selfshrinking" works
40 * to resolve this: When frontswap activity is otherwise stable
41 * and the guest kernel is not under memory pressure, the "frontswap
42 * selfshrinking" accounts for this by providing pressure to remove some
43 * pages from frontswap and return them to kernel memory.
44 *
45 * For both "selfballooning" and "frontswap-selfshrinking", a worker
46 * thread is used and sysfs tunables are provided to adjust the frequency
47 * and rate of adjustments to achieve the goal, as well as to disable one
48 * or both functions independently.
49 *
50 * While some argue that this functionality can and should be implemented
51 * in userspace, it has been observed that bad things happen (e.g. OOMs).
52 *
53 * System configuration note: Selfballooning should not be enabled on
54 * systems without a sufficiently large swap device configured; for best
55 * results, it is recommended that total swap be increased by the size
56 * of the guest memory. Also, while technically not required to be
57 * configured, it is highly recommended that frontswap also be configured
58 * and enabled when selfballooning is running. So, selfballooning
59 * is disabled by default if frontswap is not configured and can only
60 * be enabled with the "selfballooning" kernel boot option; similarly
61 * selfballooning is enabled by default if frontswap is configured and
62 * can be disabled with the "noselfballooning" kernel boot option. Finally,
63 * when frontswap is configured, frontswap-selfshrinking can be disabled
64 * with the "noselfshrink" kernel boot option.
65 *
66 * Selfballooning is disallowed in domain0 and force-disabled.
67 *
68 */
69
70#include <linux/kernel.h>
Dan Magenheimer38a1ed42011-09-27 08:47:58 -060071#include <linux/bootmem.h>
72#include <linux/swap.h>
Dan Magenheimera50777c2011-07-08 12:26:21 -060073#include <linux/mm.h>
74#include <linux/mman.h>
Randy Dunlap4fec0e02011-08-15 21:41:43 -070075#include <linux/module.h>
Konrad Rzeszutek Wilk0642d2e2011-07-22 14:01:16 -040076#include <linux/workqueue.h>
Dan Magenheimera50777c2011-07-08 12:26:21 -060077#include <xen/balloon.h>
Dan Magenheimera50777c2011-07-08 12:26:21 -060078#include <xen/tmem.h>
Konrad Rzeszutek Wilk0642d2e2011-07-22 14:01:16 -040079#include <xen/xen.h>
Dan Magenheimera50777c2011-07-08 12:26:21 -060080
81/* Enable/disable with sysfs. */
82static int xen_selfballooning_enabled __read_mostly;
83
84/*
85 * Controls rate at which memory target (this iteration) approaches
86 * ultimate goal when memory need is increasing (up-hysteresis) or
87 * decreasing (down-hysteresis). Higher values of hysteresis cause
88 * slower increases/decreases. The default values for the various
89 * parameters were deemed reasonable by experimentation, may be
90 * workload-dependent, and can all be adjusted via sysfs.
91 */
92static unsigned int selfballoon_downhysteresis __read_mostly = 8;
93static unsigned int selfballoon_uphysteresis __read_mostly = 1;
94
95/* In HZ, controls frequency of worker invocation. */
96static unsigned int selfballoon_interval __read_mostly = 5;
97
Dan Magenheimer38a1ed42011-09-27 08:47:58 -060098/*
99 * Minimum usable RAM in MB for selfballooning target for balloon.
100 * If non-zero, it is added to totalreserve_pages and self-ballooning
101 * will not balloon below the sum. If zero, a piecewise linear function
102 * is calculated as a minimum and added to totalreserve_pages. Note that
103 * setting this value indiscriminately may cause OOMs and crashes.
104 */
105static unsigned int selfballoon_min_usable_mb;
106
Dan Magenheimera50777c2011-07-08 12:26:21 -0600107static void selfballoon_process(struct work_struct *work);
108static DECLARE_DELAYED_WORK(selfballoon_worker, selfballoon_process);
109
110#ifdef CONFIG_FRONTSWAP
111#include <linux/frontswap.h>
112
113/* Enable/disable with sysfs. */
114static bool frontswap_selfshrinking __read_mostly;
115
116/* Enable/disable with kernel boot option. */
117static bool use_frontswap_selfshrink __initdata = true;
118
119/*
120 * The default values for the following parameters were deemed reasonable
121 * by experimentation, may be workload-dependent, and can all be
122 * adjusted via sysfs.
123 */
124
125/* Control rate for frontswap shrinking. Higher hysteresis is slower. */
126static unsigned int frontswap_hysteresis __read_mostly = 20;
127
128/*
129 * Number of selfballoon worker invocations to wait before observing that
130 * frontswap selfshrinking should commence. Note that selfshrinking does
131 * not use a separate worker thread.
132 */
133static unsigned int frontswap_inertia __read_mostly = 3;
134
135/* Countdown to next invocation of frontswap_shrink() */
136static unsigned long frontswap_inertia_counter;
137
138/*
139 * Invoked by the selfballoon worker thread, uses current number of pages
140 * in frontswap (frontswap_curr_pages()), previous status, and control
141 * values (hysteresis and inertia) to determine if frontswap should be
142 * shrunk and what the new frontswap size should be. Note that
143 * frontswap_shrink is essentially a partial swapoff that immediately
144 * transfers pages from the "swap device" (frontswap) back into kernel
145 * RAM; despite the name, frontswap "shrinking" is very different from
146 * the "shrinker" interface used by the kernel MM subsystem to reclaim
147 * memory.
148 */
149static void frontswap_selfshrink(void)
150{
151 static unsigned long cur_frontswap_pages;
152 static unsigned long last_frontswap_pages;
153 static unsigned long tgt_frontswap_pages;
154
155 last_frontswap_pages = cur_frontswap_pages;
156 cur_frontswap_pages = frontswap_curr_pages();
157 if (!cur_frontswap_pages ||
158 (cur_frontswap_pages > last_frontswap_pages)) {
159 frontswap_inertia_counter = frontswap_inertia;
160 return;
161 }
162 if (frontswap_inertia_counter && --frontswap_inertia_counter)
163 return;
164 if (cur_frontswap_pages <= frontswap_hysteresis)
165 tgt_frontswap_pages = 0;
166 else
167 tgt_frontswap_pages = cur_frontswap_pages -
168 (cur_frontswap_pages / frontswap_hysteresis);
169 frontswap_shrink(tgt_frontswap_pages);
170}
171
172static int __init xen_nofrontswap_selfshrink_setup(char *s)
173{
174 use_frontswap_selfshrink = false;
175 return 1;
176}
177
178__setup("noselfshrink", xen_nofrontswap_selfshrink_setup);
179
180/* Disable with kernel boot option. */
181static bool use_selfballooning __initdata = true;
182
183static int __init xen_noselfballooning_setup(char *s)
184{
185 use_selfballooning = false;
186 return 1;
187}
188
189__setup("noselfballooning", xen_noselfballooning_setup);
190#else /* !CONFIG_FRONTSWAP */
191/* Enable with kernel boot option. */
192static bool use_selfballooning __initdata = false;
193
194static int __init xen_selfballooning_setup(char *s)
195{
196 use_selfballooning = true;
197 return 1;
198}
199
200__setup("selfballooning", xen_selfballooning_setup);
201#endif /* CONFIG_FRONTSWAP */
202
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600203#define MB2PAGES(mb) ((mb) << (20 - PAGE_SHIFT))
204
Dan Magenheimera50777c2011-07-08 12:26:21 -0600205/*
206 * Use current balloon size, the goal (vm_committed_as), and hysteresis
207 * parameters to set a new target balloon size
208 */
209static void selfballoon_process(struct work_struct *work)
210{
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600211 unsigned long cur_pages, goal_pages, tgt_pages, floor_pages;
212 unsigned long useful_pages;
Dan Magenheimera50777c2011-07-08 12:26:21 -0600213 bool reset_timer = false;
214
215 if (xen_selfballooning_enabled) {
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600216 cur_pages = totalram_pages;
Dan Magenheimera50777c2011-07-08 12:26:21 -0600217 tgt_pages = cur_pages; /* default is no change */
218 goal_pages = percpu_counter_read_positive(&vm_committed_as) +
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600219 totalreserve_pages;
Dan Magenheimera50777c2011-07-08 12:26:21 -0600220#ifdef CONFIG_FRONTSWAP
221 /* allow space for frontswap pages to be repatriated */
222 if (frontswap_selfshrinking && frontswap_enabled)
223 goal_pages += frontswap_curr_pages();
224#endif
225 if (cur_pages > goal_pages)
226 tgt_pages = cur_pages -
227 ((cur_pages - goal_pages) /
228 selfballoon_downhysteresis);
229 else if (cur_pages < goal_pages)
230 tgt_pages = cur_pages +
231 ((goal_pages - cur_pages) /
232 selfballoon_uphysteresis);
233 /* else if cur_pages == goal_pages, no change */
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600234 useful_pages = max_pfn - totalreserve_pages;
235 if (selfballoon_min_usable_mb != 0)
236 floor_pages = totalreserve_pages +
237 MB2PAGES(selfballoon_min_usable_mb);
238 /* piecewise linear function ending in ~3% slope */
239 else if (useful_pages < MB2PAGES(16))
240 floor_pages = max_pfn; /* not worth ballooning */
241 else if (useful_pages < MB2PAGES(64))
242 floor_pages = totalreserve_pages + MB2PAGES(16) +
243 ((useful_pages - MB2PAGES(16)) >> 1);
244 else if (useful_pages < MB2PAGES(512))
245 floor_pages = totalreserve_pages + MB2PAGES(40) +
246 ((useful_pages - MB2PAGES(40)) >> 3);
247 else /* useful_pages >= MB2PAGES(512) */
248 floor_pages = totalreserve_pages + MB2PAGES(99) +
249 ((useful_pages - MB2PAGES(99)) >> 5);
250 if (tgt_pages < floor_pages)
251 tgt_pages = floor_pages;
252 balloon_set_new_target(tgt_pages +
253 balloon_stats.current_pages - totalram_pages);
Dan Magenheimera50777c2011-07-08 12:26:21 -0600254 reset_timer = true;
255 }
256#ifdef CONFIG_FRONTSWAP
257 if (frontswap_selfshrinking && frontswap_enabled) {
258 frontswap_selfshrink();
259 reset_timer = true;
260 }
261#endif
262 if (reset_timer)
263 schedule_delayed_work(&selfballoon_worker,
264 selfballoon_interval * HZ);
265}
266
267#ifdef CONFIG_SYSFS
268
Dan Magenheimera50777c2011-07-08 12:26:21 -0600269#include <linux/capability.h>
270
271#define SELFBALLOON_SHOW(name, format, args...) \
Kay Sievers07068022011-12-14 15:32:50 -0800272 static ssize_t show_##name(struct device *dev, \
273 struct device_attribute *attr, \
274 char *buf) \
Dan Magenheimera50777c2011-07-08 12:26:21 -0600275 { \
276 return sprintf(buf, format, ##args); \
277 }
278
279SELFBALLOON_SHOW(selfballooning, "%d\n", xen_selfballooning_enabled);
280
Kay Sievers07068022011-12-14 15:32:50 -0800281static ssize_t store_selfballooning(struct device *dev,
282 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600283 const char *buf,
284 size_t count)
285{
286 bool was_enabled = xen_selfballooning_enabled;
287 unsigned long tmp;
288 int err;
289
290 if (!capable(CAP_SYS_ADMIN))
291 return -EPERM;
292
293 err = strict_strtoul(buf, 10, &tmp);
294 if (err || ((tmp != 0) && (tmp != 1)))
295 return -EINVAL;
296
297 xen_selfballooning_enabled = !!tmp;
298 if (!was_enabled && xen_selfballooning_enabled)
299 schedule_delayed_work(&selfballoon_worker,
300 selfballoon_interval * HZ);
301
302 return count;
303}
304
Kay Sievers07068022011-12-14 15:32:50 -0800305static DEVICE_ATTR(selfballooning, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600306 show_selfballooning, store_selfballooning);
307
308SELFBALLOON_SHOW(selfballoon_interval, "%d\n", selfballoon_interval);
309
Kay Sievers07068022011-12-14 15:32:50 -0800310static ssize_t store_selfballoon_interval(struct device *dev,
311 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600312 const char *buf,
313 size_t count)
314{
315 unsigned long val;
316 int err;
317
318 if (!capable(CAP_SYS_ADMIN))
319 return -EPERM;
320 err = strict_strtoul(buf, 10, &val);
321 if (err || val == 0)
322 return -EINVAL;
323 selfballoon_interval = val;
324 return count;
325}
326
Kay Sievers07068022011-12-14 15:32:50 -0800327static DEVICE_ATTR(selfballoon_interval, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600328 show_selfballoon_interval, store_selfballoon_interval);
329
330SELFBALLOON_SHOW(selfballoon_downhys, "%d\n", selfballoon_downhysteresis);
331
Kay Sievers07068022011-12-14 15:32:50 -0800332static ssize_t store_selfballoon_downhys(struct device *dev,
333 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600334 const char *buf,
335 size_t count)
336{
337 unsigned long val;
338 int err;
339
340 if (!capable(CAP_SYS_ADMIN))
341 return -EPERM;
342 err = strict_strtoul(buf, 10, &val);
343 if (err || val == 0)
344 return -EINVAL;
345 selfballoon_downhysteresis = val;
346 return count;
347}
348
Kay Sievers07068022011-12-14 15:32:50 -0800349static DEVICE_ATTR(selfballoon_downhysteresis, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600350 show_selfballoon_downhys, store_selfballoon_downhys);
351
352
353SELFBALLOON_SHOW(selfballoon_uphys, "%d\n", selfballoon_uphysteresis);
354
Kay Sievers07068022011-12-14 15:32:50 -0800355static ssize_t store_selfballoon_uphys(struct device *dev,
356 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600357 const char *buf,
358 size_t count)
359{
360 unsigned long val;
361 int err;
362
363 if (!capable(CAP_SYS_ADMIN))
364 return -EPERM;
365 err = strict_strtoul(buf, 10, &val);
366 if (err || val == 0)
367 return -EINVAL;
368 selfballoon_uphysteresis = val;
369 return count;
370}
371
Kay Sievers07068022011-12-14 15:32:50 -0800372static DEVICE_ATTR(selfballoon_uphysteresis, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600373 show_selfballoon_uphys, store_selfballoon_uphys);
374
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600375SELFBALLOON_SHOW(selfballoon_min_usable_mb, "%d\n",
376 selfballoon_min_usable_mb);
377
Kay Sievers07068022011-12-14 15:32:50 -0800378static ssize_t store_selfballoon_min_usable_mb(struct device *dev,
379 struct device_attribute *attr,
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600380 const char *buf,
381 size_t count)
382{
383 unsigned long val;
384 int err;
385
386 if (!capable(CAP_SYS_ADMIN))
387 return -EPERM;
388 err = strict_strtoul(buf, 10, &val);
389 if (err || val == 0)
390 return -EINVAL;
391 selfballoon_min_usable_mb = val;
392 return count;
393}
394
Kay Sievers07068022011-12-14 15:32:50 -0800395static DEVICE_ATTR(selfballoon_min_usable_mb, S_IRUGO | S_IWUSR,
Dan Magenheimer38a1ed42011-09-27 08:47:58 -0600396 show_selfballoon_min_usable_mb,
397 store_selfballoon_min_usable_mb);
398
399
Dan Magenheimera50777c2011-07-08 12:26:21 -0600400#ifdef CONFIG_FRONTSWAP
401SELFBALLOON_SHOW(frontswap_selfshrinking, "%d\n", frontswap_selfshrinking);
402
Kay Sievers07068022011-12-14 15:32:50 -0800403static ssize_t store_frontswap_selfshrinking(struct device *dev,
404 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600405 const char *buf,
406 size_t count)
407{
408 bool was_enabled = frontswap_selfshrinking;
409 unsigned long tmp;
410 int err;
411
412 if (!capable(CAP_SYS_ADMIN))
413 return -EPERM;
414 err = strict_strtoul(buf, 10, &tmp);
415 if (err || ((tmp != 0) && (tmp != 1)))
416 return -EINVAL;
417 frontswap_selfshrinking = !!tmp;
418 if (!was_enabled && !xen_selfballooning_enabled &&
419 frontswap_selfshrinking)
420 schedule_delayed_work(&selfballoon_worker,
421 selfballoon_interval * HZ);
422
423 return count;
424}
425
Kay Sievers07068022011-12-14 15:32:50 -0800426static DEVICE_ATTR(frontswap_selfshrinking, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600427 show_frontswap_selfshrinking, store_frontswap_selfshrinking);
428
429SELFBALLOON_SHOW(frontswap_inertia, "%d\n", frontswap_inertia);
430
Kay Sievers07068022011-12-14 15:32:50 -0800431static ssize_t store_frontswap_inertia(struct device *dev,
432 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600433 const char *buf,
434 size_t count)
435{
436 unsigned long val;
437 int err;
438
439 if (!capable(CAP_SYS_ADMIN))
440 return -EPERM;
441 err = strict_strtoul(buf, 10, &val);
442 if (err || val == 0)
443 return -EINVAL;
444 frontswap_inertia = val;
445 frontswap_inertia_counter = val;
446 return count;
447}
448
Kay Sievers07068022011-12-14 15:32:50 -0800449static DEVICE_ATTR(frontswap_inertia, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600450 show_frontswap_inertia, store_frontswap_inertia);
451
452SELFBALLOON_SHOW(frontswap_hysteresis, "%d\n", frontswap_hysteresis);
453
Kay Sievers07068022011-12-14 15:32:50 -0800454static ssize_t store_frontswap_hysteresis(struct device *dev,
455 struct device_attribute *attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600456 const char *buf,
457 size_t count)
458{
459 unsigned long val;
460 int err;
461
462 if (!capable(CAP_SYS_ADMIN))
463 return -EPERM;
464 err = strict_strtoul(buf, 10, &val);
465 if (err || val == 0)
466 return -EINVAL;
467 frontswap_hysteresis = val;
468 return count;
469}
470
Kay Sievers07068022011-12-14 15:32:50 -0800471static DEVICE_ATTR(frontswap_hysteresis, S_IRUGO | S_IWUSR,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600472 show_frontswap_hysteresis, store_frontswap_hysteresis);
473
474#endif /* CONFIG_FRONTSWAP */
475
476static struct attribute *selfballoon_attrs[] = {
Kay Sievers07068022011-12-14 15:32:50 -0800477 &dev_attr_selfballooning.attr,
478 &dev_attr_selfballoon_interval.attr,
479 &dev_attr_selfballoon_downhysteresis.attr,
480 &dev_attr_selfballoon_uphysteresis.attr,
481 &dev_attr_selfballoon_min_usable_mb.attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600482#ifdef CONFIG_FRONTSWAP
Kay Sievers07068022011-12-14 15:32:50 -0800483 &dev_attr_frontswap_selfshrinking.attr,
484 &dev_attr_frontswap_hysteresis.attr,
485 &dev_attr_frontswap_inertia.attr,
Dan Magenheimera50777c2011-07-08 12:26:21 -0600486#endif
487 NULL
488};
489
490static struct attribute_group selfballoon_group = {
491 .name = "selfballoon",
492 .attrs = selfballoon_attrs
493};
494#endif
495
Kay Sievers07068022011-12-14 15:32:50 -0800496int register_xen_selfballooning(struct device *dev)
Dan Magenheimera50777c2011-07-08 12:26:21 -0600497{
498 int error = -1;
499
500#ifdef CONFIG_SYSFS
Kay Sievers07068022011-12-14 15:32:50 -0800501 error = sysfs_create_group(&dev->kobj, &selfballoon_group);
Dan Magenheimera50777c2011-07-08 12:26:21 -0600502#endif
503 return error;
504}
505EXPORT_SYMBOL(register_xen_selfballooning);
506
507static int __init xen_selfballoon_init(void)
508{
509 bool enable = false;
510
511 if (!xen_domain())
512 return -ENODEV;
513
514 if (xen_initial_domain()) {
515 pr_info("xen/balloon: Xen selfballooning driver "
516 "disabled for domain0.\n");
517 return -ENODEV;
518 }
519
520 xen_selfballooning_enabled = tmem_enabled && use_selfballooning;
521 if (xen_selfballooning_enabled) {
522 pr_info("xen/balloon: Initializing Xen "
523 "selfballooning driver.\n");
524 enable = true;
525 }
526#ifdef CONFIG_FRONTSWAP
527 frontswap_selfshrinking = tmem_enabled && use_frontswap_selfshrink;
528 if (frontswap_selfshrinking) {
529 pr_info("xen/balloon: Initializing frontswap "
530 "selfshrinking driver.\n");
531 enable = true;
532 }
533#endif
534 if (!enable)
535 return -ENODEV;
536
537 schedule_delayed_work(&selfballoon_worker, selfballoon_interval * HZ);
538
539 return 0;
540}
541
542subsys_initcall(xen_selfballoon_init);
543
544MODULE_LICENSE("GPL");