diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-12-02 15:19:35 +0100 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2016-12-02 20:49:55 +0100 |
commit | 2fbadc3002c5f172d20aa2e7e48920c5f14ed11f (patch) | |
tree | b20a275093fc3459ee2f03550031d3b474b96be9 /include/xen/arm/hypervisor.h | |
parent | xen/events: use xen_vcpu_id mapping for EVTCHNOP_status (diff) | |
download | linux-2fbadc3002c5f172d20aa2e7e48920c5f14ed11f.tar.xz linux-2fbadc3002c5f172d20aa2e7e48920c5f14ed11f.zip |
arm/arm64: xen: Move shared architecture headers to include/xen/arm
ARM and arm64 Xen ports share a number of headers, leading to
packaging issues when these headers needs to be exported, as it
breaks the reasonable requirement that an architecture port
has self-contained headers.
Fix the issue by moving the 5 header files to include/xen/arm,
and keep local placeholders to include the relevant files.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'include/xen/arm/hypervisor.h')
-rw-r--r-- | include/xen/arm/hypervisor.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/xen/arm/hypervisor.h b/include/xen/arm/hypervisor.h new file mode 100644 index 000000000000..95251512e2c4 --- /dev/null +++ b/include/xen/arm/hypervisor.h @@ -0,0 +1,39 @@ +#ifndef _ASM_ARM_XEN_HYPERVISOR_H +#define _ASM_ARM_XEN_HYPERVISOR_H + +#include <linux/init.h> + +extern struct shared_info *HYPERVISOR_shared_info; +extern struct start_info *xen_start_info; + +/* Lazy mode for batching updates / context switch */ +enum paravirt_lazy_mode { + PARAVIRT_LAZY_NONE, + PARAVIRT_LAZY_MMU, + PARAVIRT_LAZY_CPU, +}; + +static inline enum paravirt_lazy_mode paravirt_get_lazy_mode(void) +{ + return PARAVIRT_LAZY_NONE; +} + +extern struct dma_map_ops *xen_dma_ops; + +#ifdef CONFIG_XEN +void __init xen_early_init(void); +#else +static inline void xen_early_init(void) { return; } +#endif + +#ifdef CONFIG_HOTPLUG_CPU +static inline void xen_arch_register_cpu(int num) +{ +} + +static inline void xen_arch_unregister_cpu(int num) +{ +} +#endif + +#endif /* _ASM_ARM_XEN_HYPERVISOR_H */ |