hypervisor.h 776 字节
Newer Older
S
Stefano Stabellini 已提交
1 2 3
#ifndef _ASM_ARM_XEN_HYPERVISOR_H
#define _ASM_ARM_XEN_HYPERVISOR_H

4 5
#include <linux/init.h>

S
Stefano Stabellini 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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;
}

21 22
extern struct dma_map_ops *xen_dma_ops;

23 24 25 26 27 28
#ifdef CONFIG_XEN
void __init xen_early_init(void);
#else
static inline void xen_early_init(void) { return; }
#endif

S
Stefano Stabellini 已提交
29 30 31 32 33 34 35 36 37 38
#ifdef CONFIG_HOTPLUG_CPU
static inline void xen_arch_register_cpu(int num)
{
}

static inline void xen_arch_unregister_cpu(int num)
{
}
#endif

S
Stefano Stabellini 已提交
39
#endif /* _ASM_ARM_XEN_HYPERVISOR_H */