Go to the documentation of this file.
9 #ifndef __XEN_PUBLIC_XEN_H__
10 #define __XEN_PUBLIC_XEN_H__
12 #include <asm/xen/interface.h>
26 #define __HYPERVISOR_set_trap_table 0
27 #define __HYPERVISOR_mmu_update 1
28 #define __HYPERVISOR_set_gdt 2
29 #define __HYPERVISOR_stack_switch 3
30 #define __HYPERVISOR_set_callbacks 4
31 #define __HYPERVISOR_fpu_taskswitch 5
32 #define __HYPERVISOR_sched_op_compat 6
33 #define __HYPERVISOR_dom0_op 7
34 #define __HYPERVISOR_set_debugreg 8
35 #define __HYPERVISOR_get_debugreg 9
36 #define __HYPERVISOR_update_descriptor 10
37 #define __HYPERVISOR_memory_op 12
38 #define __HYPERVISOR_multicall 13
39 #define __HYPERVISOR_update_va_mapping 14
40 #define __HYPERVISOR_set_timer_op 15
41 #define __HYPERVISOR_event_channel_op_compat 16
42 #define __HYPERVISOR_xen_version 17
43 #define __HYPERVISOR_console_io 18
44 #define __HYPERVISOR_physdev_op_compat 19
45 #define __HYPERVISOR_grant_table_op 20
46 #define __HYPERVISOR_vm_assist 21
47 #define __HYPERVISOR_update_va_mapping_otherdomain 22
48 #define __HYPERVISOR_iret 23
49 #define __HYPERVISOR_vcpu_op 24
50 #define __HYPERVISOR_set_segment_base 25
51 #define __HYPERVISOR_mmuext_op 26
52 #define __HYPERVISOR_acm_op 27
53 #define __HYPERVISOR_nmi_op 28
54 #define __HYPERVISOR_sched_op 29
55 #define __HYPERVISOR_callback_op 30
56 #define __HYPERVISOR_xenoprof_op 31
57 #define __HYPERVISOR_event_channel_op 32
58 #define __HYPERVISOR_physdev_op 33
59 #define __HYPERVISOR_hvm_op 34
60 #define __HYPERVISOR_tmem_op 38
63 #define __HYPERVISOR_arch_0 48
64 #define __HYPERVISOR_arch_1 49
65 #define __HYPERVISOR_arch_2 50
66 #define __HYPERVISOR_arch_3 51
67 #define __HYPERVISOR_arch_4 52
68 #define __HYPERVISOR_arch_5 53
69 #define __HYPERVISOR_arch_6 54
70 #define __HYPERVISOR_arch_7 55
79 #define VIRQ_CONSOLE 2
80 #define VIRQ_DOM_EXC 3
81 #define VIRQ_DEBUGGER 6
82 #define VIRQ_PCPU_STATE 9
85 #define VIRQ_ARCH_0 16
86 #define VIRQ_ARCH_1 17
87 #define VIRQ_ARCH_2 18
88 #define VIRQ_ARCH_3 19
89 #define VIRQ_ARCH_4 20
90 #define VIRQ_ARCH_5 21
91 #define VIRQ_ARCH_6 22
92 #define VIRQ_ARCH_7 23
123 #define MMU_NORMAL_PT_UPDATE 0
124 #define MMU_MACHPHYS_UPDATE 1
125 #define MMU_PT_UPDATE_PRESERVE_AD 2
171 #define MMUEXT_PIN_L1_TABLE 0
172 #define MMUEXT_PIN_L2_TABLE 1
173 #define MMUEXT_PIN_L3_TABLE 2
174 #define MMUEXT_PIN_L4_TABLE 3
175 #define MMUEXT_UNPIN_TABLE 4
176 #define MMUEXT_NEW_BASEPTR 5
177 #define MMUEXT_TLB_FLUSH_LOCAL 6
178 #define MMUEXT_INVLPG_LOCAL 7
179 #define MMUEXT_TLB_FLUSH_MULTI 8
180 #define MMUEXT_INVLPG_MULTI 9
181 #define MMUEXT_TLB_FLUSH_ALL 10
182 #define MMUEXT_INVLPG_ALL 11
183 #define MMUEXT_FLUSH_CACHE 12
184 #define MMUEXT_SET_LDT 13
185 #define MMUEXT_NEW_USER_BASEPTR 15
209 #define UVMF_NONE (0UL<<0)
210 #define UVMF_TLB_FLUSH (1UL<<0)
211 #define UVMF_INVLPG (2UL<<0)
212 #define UVMF_FLUSHTYPE_MASK (3UL<<0)
213 #define UVMF_MULTI (0UL<<2)
214 #define UVMF_LOCAL (0UL<<2)
215 #define UVMF_ALL (1UL<<2)
220 #define CONSOLEIO_write 0
221 #define CONSOLEIO_read 1
226 #define VMASST_CMD_enable 0
227 #define VMASST_CMD_disable 1
228 #define VMASST_TYPE_4gb_segments 0
229 #define VMASST_TYPE_4gb_segments_notify 1
230 #define VMASST_TYPE_writable_pagetables 2
231 #define VMASST_TYPE_pae_extended_cr3 3
232 #define MAX_VMASST_TYPE 3
239 #define DOMID_FIRST_RESERVED (0x7FF0U)
242 #define DOMID_SELF (0x7FF0U)
253 #define DOMID_IO (0x7FF1U)
261 #define DOMID_XEN (0x7FF2U)
288 #define NR_EVENT_CHANNELS (sizeof(unsigned long) * sizeof(unsigned long) * 64)
425 #define MAX_GUEST_CMDLINE 1024
455 #define XEN_VGATYPE_TEXT_MODE_3 0x03
456 #define XEN_VGATYPE_VESA_LFB 0x23
457 #define XEN_VGATYPE_EFI_LFB 0x70
494 #define SIF_PRIVILEGED (1<<0)
495 #define SIF_INITDOMAIN (1<<1)
496 #define SIF_PM_MASK (0xFF<<8)
503 #define __mk_unsigned_long(x) x ## UL
504 #define mk_unsigned_long(x) __mk_unsigned_long(x)
506 #define TMEM_SPEC_VERSION 1
532 #define mk_unsigned_long(x) x