xen-ops.h 1.1 KB
Newer Older
1 2 3 4
#ifndef INCLUDE_XEN_OPS_H
#define INCLUDE_XEN_OPS_H

#include <linux/percpu.h>
5
#include <asm/xen/interface.h>
6 7 8

DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);

9 10 11
void xen_arch_pre_suspend(void);
void xen_arch_post_suspend(int suspend_cancelled);
void xen_arch_hvm_post_suspend(int suspend_cancelled);
12 13 14 15

void xen_mm_pin_all(void);
void xen_mm_unpin_all(void);

16 17 18
void xen_timer_resume(void);
void xen_arch_resume(void);

19 20
int xen_setup_shutdown_event(void);

21 22 23 24 25 26
extern unsigned long *xen_contiguous_bitmap;
int xen_create_contiguous_region(unsigned long vstart, unsigned int order,
				unsigned int address_bits);

void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order);

27
struct vm_area_struct;
28 29
int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
			       unsigned long addr,
30
			       xen_pfn_t mfn, int nr,
31 32 33 34
			       pgprot_t prot, unsigned domid,
			       struct page **pages);
int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
			       int numpgs, struct page **pages);
35

36
bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
37
#endif /* INCLUDE_XEN_OPS_H */