search for: pages2kb

Displaying 4 results from an estimated 4 matches for "pages2kb".

Did you mean: page_kb
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...0,7 @@ static void balloon_set_new_target(unsigned long target) schedule_work(&balloon_worker); } -static struct xenbus_watch target_watch = -{ +static struct xenbus_watch target_watch = { .node = "memory/target" }; @@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low)); BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high)); BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *bu...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...0,7 @@ static void balloon_set_new_target(unsigned long target) schedule_work(&balloon_worker); } -static struct xenbus_watch target_watch = -{ +static struct xenbus_watch target_watch = { .node = "memory/target" }; @@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low)); BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high)); BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *bu...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...0,7 @@ static void balloon_set_new_target(unsigned long target) schedule_work(&balloon_worker); } -static struct xenbus_watch target_watch = -{ +static struct xenbus_watch target_watch = { .node = "memory/target" }; @@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low)); BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high)); BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *bu...
2010 Aug 06
5
[PATCH] GSoC 2010 - Memory hotplug support for Xen guests - second fully working version - once again
...de <linux/memory.h> +#include <linux/suspend.h> #include <asm/page.h> #include <asm/pgalloc.h> @@ -62,10 +64,6 @@ #include <xen/features.h> #include <xen/page.h> -#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG -#include <linux/memory.h> -#endif - #define PAGES2KB(_p) ((_p)<<(PAGE_SHIFT-10)) #define BALLOON_CLASS_NAME "xen_memory" @@ -199,6 +197,196 @@ static inline unsigned long current_target(void) { return balloon_stats.target_pages; } + +static inline u64 is_memory_resource_reserved(void) +{ + return balloon_stats.hotplug_start_pad...