diff options
-rw-r--r-- | arch/arm/xen/enlighten.c | 23 | ||||
-rw-r--r-- | drivers/xen/Makefile | 4 |
2 files changed, 7 insertions, 20 deletions
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 59bcb96ac369..ba5cc134a7d3 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <xen/features.h> | 8 | #include <xen/features.h> |
9 | #include <xen/platform_pci.h> | 9 | #include <xen/platform_pci.h> |
10 | #include <xen/xenbus.h> | 10 | #include <xen/xenbus.h> |
11 | #include <xen/page.h> | ||
11 | #include <asm/xen/hypervisor.h> | 12 | #include <asm/xen/hypervisor.h> |
12 | #include <asm/xen/hypercall.h> | 13 | #include <asm/xen/hypercall.h> |
13 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
@@ -29,6 +30,10 @@ struct shared_info *HYPERVISOR_shared_info = (void *)&xen_dummy_shared_info; | |||
29 | 30 | ||
30 | DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); | 31 | DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); |
31 | 32 | ||
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 | |||
32 | /* TODO: to be removed */ | 37 | /* TODO: to be removed */ |
33 | __read_mostly int xen_have_vector_callback; | 38 | __read_mostly int xen_have_vector_callback; |
34 | EXPORT_SYMBOL_GPL(xen_have_vector_callback); | 39 | EXPORT_SYMBOL_GPL(xen_have_vector_callback); |
@@ -148,21 +153,3 @@ static int __init xen_init_events(void) | |||
148 | return 0; | 153 | return 0; |
149 | } | 154 | } |
150 | postcore_initcall(xen_init_events); | 155 | 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); | ||
diff --git a/drivers/xen/Makefile b/drivers/xen/Makefile index 0e8637035457..909bb56e3ade 100644 --- a/drivers/xen/Makefile +++ b/drivers/xen/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | ifneq ($(CONFIG_ARM),y) | 1 | ifneq ($(CONFIG_ARM),y) |
2 | obj-y += manage.o balloon.o | 2 | obj-y += manage.o |
3 | obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o | 3 | obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o |
4 | endif | 4 | endif |
5 | obj-y += grant-table.o features.o events.o | 5 | obj-y += grant-table.o features.o events.o balloon.o |
6 | obj-y += xenbus/ | 6 | obj-y += xenbus/ |
7 | 7 | ||
8 | nostackp := $(call cc-option, -fno-stack-protector) | 8 | nostackp := $(call cc-option, -fno-stack-protector) |