]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/xen/xen-ops.h
x86/xen: Make sure X2APIC_ENABLE bit of MSR_IA32_APICBASE is not set
[mirror_ubuntu-bionic-kernel.git] / include / xen / xen-ops.h
CommitLineData
e04d0d07
IY
1#ifndef INCLUDE_XEN_OPS_H
2#define INCLUDE_XEN_OPS_H
3
4#include <linux/percpu.h>
cd979883 5#include <linux/notifier.h>
be81c8a1 6#include <linux/efi.h>
7892f692 7#include <asm/xen/interface.h>
e04d0d07
IY
8
9DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
10
03c8142b
IC
11void xen_arch_pre_suspend(void);
12void xen_arch_post_suspend(int suspend_cancelled);
0e91398f 13
ad55db9f
IY
14void xen_timer_resume(void);
15void xen_arch_resume(void);
16
cd979883
SG
17void xen_resume_notifier_register(struct notifier_block *nb);
18void xen_resume_notifier_unregister(struct notifier_block *nb);
19
016b6f5f
SS
20int xen_setup_shutdown_event(void);
21
08bbc9da 22extern unsigned long *xen_contiguous_bitmap;
1b65c4e5 23int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
69908907
SS
24 unsigned int address_bits,
25 dma_addr_t *dma_handle);
08bbc9da 26
1b65c4e5 27void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
08bbc9da 28
c140d879 29struct vm_area_struct;
de1ef206
IC
30int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
31 unsigned long addr,
7892f692 32 xen_pfn_t mfn, int nr,
9a032e39
IC
33 pgprot_t prot, unsigned domid,
34 struct page **pages);
35int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
36 int numpgs, struct page **pages);
de1ef206 37
394b40f6 38bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
be81c8a1
DK
39
40#ifdef CONFIG_XEN_EFI
41extern efi_system_table_t *xen_efi_probe(void);
42#else
57f7138d 43static inline efi_system_table_t __init *xen_efi_probe(void)
be81c8a1
DK
44{
45 return NULL;
46}
47#endif
48
e04d0d07 49#endif /* INCLUDE_XEN_OPS_H */