search for: hotplug_size

Displaying 2 results from an estimated 2 matches for "hotplug_size".

2010 Aug 06
5
[PATCH] GSoC 2010 - Memory hotplug support for Xen guests - second fully working version - once again
...GE_SHIFT; + + rc = allocate_resource(&iomem_resource, r, r_size, r_min, + ULONG_MAX, PAGE_SIZE, NULL, NULL); + + if (rc < 0) { + kfree(r); + goto out; + } + + balloon_stats.hotplug_start_paddr = r->start; + } + + pfn = PFN_DOWN(balloon_stats.hotplug_start_paddr + balloon_stats.hotplug_size); + + for (i = 0; i < nr_pages; ++i, ++pfn) + frame_list[i] = pfn; + + set_xen_guest_handle(reservation.extent_start, frame_list); + reservation.nr_extents = nr_pages; + + rc = HYPERVISOR_memory_op(XENMEM_populate_physmap, &reservation); + + if (rc < 0) + goto out; + + pfn = PFN_DOWN(ba...
2010 Aug 12
13
[PATCH] GSoC 2010 - Memory hotplug support for Xen guests - third fully working version
...t allocate_additional_memory(unsigned long nr_pages) if (rc < 0) { kfree(r); - goto out; + goto out_0; } balloon_stats.hotplug_start_paddr = r->start; } + spin_lock_irqsave(&balloon_lock, flags); + pfn = PFN_DOWN(balloon_stats.hotplug_start_paddr + balloon_stats.hotplug_size); for (i = 0; i < nr_pages; ++i, ++pfn) @@ -310,7 +258,7 @@ static int allocate_additional_memory(unsigned long nr_pages) rc = HYPERVISOR_memory_op(XENMEM_populate_physmap, &reservation); if (rc < 0) - goto out; + goto out_1; pfn = PFN_DOWN(balloon_stats.hotplug_start_padd...