Skip to content

Commit c61ba72

Browse files
author
Ian Campbell
committed
xen: arm: enable balloon driver
The code is now in a state where can just enable it. Drop the *_xenballloned_pages duplicates since these are now supplied by the balloon code. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent c2374bf commit c61ba72

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

arch/arm/xen/enlighten.c

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <xen/features.h>
99
#include <xen/platform_pci.h>
1010
#include <xen/xenbus.h>
11+
#include <xen/page.h>
1112
#include <asm/xen/hypervisor.h>
1213
#include <asm/xen/hypercall.h>
1314
#include <linux/interrupt.h>
@@ -29,6 +30,10 @@ struct shared_info *HYPERVISOR_shared_info = (void *)&xen_dummy_shared_info;
2930

3031
DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu);
3132

33+
/* These are unused until we support booting "pre-ballooned" */
34+
unsigned long xen_released_pages;
35+
struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS] __initdata;
36+
3237
/* TODO: to be removed */
3338
__read_mostly int xen_have_vector_callback;
3439
EXPORT_SYMBOL_GPL(xen_have_vector_callback);
@@ -148,21 +153,3 @@ static int __init xen_init_events(void)
148153
return 0;
149154
}
150155
postcore_initcall(xen_init_events);
151-
152-
/* XXX: only until balloon is properly working */
153-
int alloc_xenballooned_pages(int nr_pages, struct page **pages, bool highmem)
154-
{
155-
*pages = alloc_pages(highmem ? GFP_HIGHUSER : GFP_KERNEL,
156-
get_order(nr_pages));
157-
if (*pages == NULL)
158-
return -ENOMEM;
159-
return 0;
160-
}
161-
EXPORT_SYMBOL_GPL(alloc_xenballooned_pages);
162-
163-
void free_xenballooned_pages(int nr_pages, struct page **pages)
164-
{
165-
kfree(*pages);
166-
*pages = NULL;
167-
}
168-
EXPORT_SYMBOL_GPL(free_xenballooned_pages);

drivers/xen/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ifneq ($(CONFIG_ARM),y)
2-
obj-y += manage.o balloon.o
2+
obj-y += manage.o
33
obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o
44
endif
5-
obj-y += grant-table.o features.o events.o
5+
obj-y += grant-table.o features.o events.o balloon.o
66
obj-y += xenbus/
77

88
nostackp := $(call cc-option, -fno-stack-protector)

0 commit comments

Comments
 (0)