.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | + |
---|
1 | 3 | #ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG |
---|
2 | | -#include <linux/bootmem.h> |
---|
| 4 | +#include <linux/memblock.h> |
---|
3 | 5 | #endif |
---|
4 | 6 | #include <linux/cpu.h> |
---|
5 | 7 | #include <linux/kexec.h> |
---|
6 | 8 | #include <linux/slab.h> |
---|
7 | 9 | |
---|
| 10 | +#include <xen/xen.h> |
---|
8 | 11 | #include <xen/features.h> |
---|
9 | 12 | #include <xen/page.h> |
---|
10 | 13 | |
---|
.. | .. |
---|
48 | 51 | DEFINE_PER_CPU(uint32_t, xen_vcpu_id); |
---|
49 | 52 | EXPORT_PER_CPU_SYMBOL(xen_vcpu_id); |
---|
50 | 53 | |
---|
51 | | -enum xen_domain_type xen_domain_type = XEN_NATIVE; |
---|
52 | | -EXPORT_SYMBOL_GPL(xen_domain_type); |
---|
53 | | - |
---|
54 | 54 | unsigned long *machine_to_phys_mapping = (void *)MACH2PHYS_VIRT_START; |
---|
55 | 55 | EXPORT_SYMBOL(machine_to_phys_mapping); |
---|
56 | 56 | unsigned long machine_to_phys_nr; |
---|
.. | .. |
---|
65 | 65 | EXPORT_SYMBOL_GPL(xen_have_vector_callback); |
---|
66 | 66 | |
---|
67 | 67 | /* |
---|
68 | | - * NB: needs to live in .data because it's used by xen_prepare_pvh which runs |
---|
69 | | - * before clearing the bss. |
---|
| 68 | + * NB: These need to live in .data or alike because they're used by |
---|
| 69 | + * xen_prepare_pvh() which runs before clearing the bss. |
---|
70 | 70 | */ |
---|
71 | | -uint32_t xen_start_flags __attribute__((section(".data"))) = 0; |
---|
| 71 | +enum xen_domain_type __ro_after_init xen_domain_type = XEN_NATIVE; |
---|
| 72 | +EXPORT_SYMBOL_GPL(xen_domain_type); |
---|
| 73 | +uint32_t xen_start_flags __section(".data") = 0; |
---|
72 | 74 | EXPORT_SYMBOL(xen_start_flags); |
---|
73 | 75 | |
---|
74 | 76 | /* |
---|