search for: target_pages

Displaying 14 results from an estimated 14 matches for "target_pages".

Did you mean: target_nrpages
2010 Aug 12
13
[PATCH] GSoC 2010 - Memory hotplug support for Xen guests - third fully working version
...y differences between pv and hvm? No. Only those changes are needed where xen_domain()/xen_pv_domain() is used. > >>>+#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG > >>>+static inline unsigned long current_target(void) > >>>+{ > >>>+ return balloon_stats.target_pages; > >>Why does this need its own version? > >Because original version return values not bigger > >then initial memory allocation which does not allow > >memory hotplug to function. > > But surely they can be combined? A system without > XEN_BALLOON_MEMORY_HOTPLUG...
2010 Aug 06
5
[PATCH] GSoC 2010 - Memory hotplug support for Xen guests - second fully working version - once again
...xen/memory-hotplug so people > can play with it more easily (but I haven''t merged it into any of the > other branches yet). Thx. > >+#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG > >+static inline unsigned long current_target(void) > >+{ > >+ return balloon_stats.target_pages; > > Why does this need its own version? Because original version return values not bigger then initial memory allocation which does not allow memory hotplug to function. > >+int __ref xen_add_memory(int nid, u64 start, u64 size) > >+{ > >+ pg_data_t *pgdat = NULL; > &g...
2011 Feb 03
0
[PATCH R3 4/7] xen/balloon: Migration from mod_timer() to schedule_delayed_work()
...11 +171,6 @@ static struct page *balloon_next_page(struct page *page) return list_entry(next, struct page, lru); } -static void balloon_alarm(unsigned long unused) -{ - schedule_work(&balloon_worker); -} - static unsigned long current_target(void) { unsigned long target = balloon_stats.target_pages; @@ -333,7 +327,7 @@ static void balloon_process(struct work_struct *work) /* Schedule more work if there is some still to be done. */ if (current_target() != balloon_stats.current_pages) - mod_timer(&balloon_timer, jiffies + HZ); + schedule_delayed_work(&balloon_worker, HZ); mu...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
....driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target_kb(struct sys_device *dev, + struct sysdev_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", PAGES2KB(balloon_stats.target_pages)); } @@ -488,8 +487,8 @@ static SYSDEV_ATTR(target_kb, S_IRUGO | S_IWUSR, show_target_kb, store_target_kb); -static ssize_t show_target(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target(struct sys_device *dev, + struct sysdev_att...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
....driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target_kb(struct sys_device *dev, + struct sysdev_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", PAGES2KB(balloon_stats.target_pages)); } @@ -488,8 +487,8 @@ static SYSDEV_ATTR(target_kb, S_IRUGO | S_IWUSR, show_target_kb, store_target_kb); -static ssize_t show_target(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target(struct sys_device *dev, + struct sysdev_att...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
....driver_pages)); -static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target_kb(struct sys_device *dev, + struct sysdev_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", PAGES2KB(balloon_stats.target_pages)); } @@ -488,8 +487,8 @@ static SYSDEV_ATTR(target_kb, S_IRUGO | S_IWUSR, show_target_kb, store_target_kb); -static ssize_t show_target(struct sys_device *dev, struct sysdev_attribute *attr, - char *buf) +static ssize_t show_target(struct sys_device *dev, + struct sysdev_att...
2005 Dec 07
5
[PATCH] Arch-neutral balloon driver
...ge); + mfn_list[i] = pfn_to_mfn(pfn); if (!PageHighMem(page)) { v = phys_to_virt(pfn << PAGE_SHIFT); @@ -444,6 +444,9 @@ IPRINTK("Initialising balloon driver.\n"); + if (xen_init() < 0) + return -1; + current_pages = min(xen_start_info->nr_pages, max_pfn); target_pages = current_pages; balloon_low = 0; @@ -465,7 +468,7 @@ /* Initialise the balloon with excess memory space. */ for (pfn = xen_start_info->nr_pages; pfn < max_pfn; pfn++) { - page = &mem_map[pfn]; + page = pfn_to_page(pfn); if (!PageReserved(page)) balloon_append(page...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...n 0; +} + +static ssize_t virtballoon_attr_show(struct device *dev, + struct device_attribute *attr, + char *buf); + +static DEVICE_ATTR(total_memory, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(free_memory, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(target_pages, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(actual_pages, 0644, + virtballoon_attr_show, NULL); + +static struct attribute *virtballoon_attrs[] = { + &dev_attr_total_memory.attr, + &dev_attr_free_memory.attr, + &dev_attr_target_pages.attr, + &dev_attr_actual_pages.a...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...n 0; +} + +static ssize_t virtballoon_attr_show(struct device *dev, + struct device_attribute *attr, + char *buf); + +static DEVICE_ATTR(total_memory, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(free_memory, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(target_pages, 0644, + virtballoon_attr_show, NULL); + +static DEVICE_ATTR(actual_pages, 0644, + virtballoon_attr_show, NULL); + +static struct attribute *virtballoon_attrs[] = { + &dev_attr_total_memory.attr, + &dev_attr_free_memory.attr, + &dev_attr_target_pages.attr, + &dev_attr_actual_pages.a...
2012 Jul 25
0
No subject
...har *buf); > >> + > >> +static DEVICE_ATTR(total_memory, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(free_memory, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(target_pages, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(actual_pages, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static struct attribute *virtballoon_attrs[] = { > >> + &dev_attr_total_me...
2012 Jul 25
0
No subject
...har *buf); > >> + > >> +static DEVICE_ATTR(total_memory, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(free_memory, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(target_pages, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static DEVICE_ATTR(actual_pages, 0644, > >> + virtballoon_attr_show, NULL); > >> + > >> +static struct attribute *virtballoon_attrs[] = { > >> + &dev_attr_total_me...
2011 Jan 17
8
[PATCH 0 of 3] Miscellaneous populate-on-demand bugs
This patch series includes a series of bugs related to p2m, ept, and PoD code which were found as part of our XenServer product testing. Each of these fixes actual bugs, and the 3.4-based version of the patch has been tested thoroughly. (There may be bugs in porting the patches, but most of them are simple enough as to make it unlikely.) Each patch is conceptually independent, so they can each
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
Hi Rusty, It was agreed that the balloon driver should be merged through the virtio tree, so here it goes. It depends on the config_changed patch posted earlier. ----- Following patch adds the KVM balloon driver. Changes from last version: - Get rid of global variables/structure - Use page->lru to link ballooned pages - Use dev_dbg/dev_printk - Proper kthread_should_stop handling - Move
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
Hi Rusty, It was agreed that the balloon driver should be merged through the virtio tree, so here it goes. It depends on the config_changed patch posted earlier. ----- Following patch adds the KVM balloon driver. Changes from last version: - Get rid of global variables/structure - Use page->lru to link ballooned pages - Use dev_dbg/dev_printk - Proper kthread_should_stop handling - Move