VMM: removes the dune <-> proc
[akaros.git] / kern / arch / x86 / vmm / intel / compat.h
1 #ifndef __DUNE_COMPAT_H_
2 #define __DUNE_COMPAT_H_
3
4 #if !defined(VMX_EPT_AD_BIT)
5 #define VMX_EPT_AD_BIT          (1ull << 21)
6 #define VMX_EPT_AD_ENABLE_BIT   (1ull << 6)
7 #endif
8
9 #ifndef VMX_EPT_EXTENT_INDIVIDUAL_BIT
10 #define VMX_EPT_EXTENT_INDIVIDUAL_BIT           (1ull << 24)
11 #endif
12
13 #ifndef X86_CR4_PCIDE
14 #define X86_CR4_PCIDE           0x00020000 /* enable PCID support */
15 #endif
16
17 #ifndef SECONDARY_EXEC_ENABLE_INVPCID
18 #define SECONDARY_EXEC_ENABLE_INVPCID   0x00001000
19 #endif
20
21 /*
22  * shutdown reasons
23  */
24 enum shutdown_reason {
25         SHUTDOWN_SYS_EXIT = 1,
26         SHUTDOWN_SYS_EXIT_GROUP,
27         SHUTDOWN_SYS_EXECVE,
28         SHUTDOWN_FATAL_SIGNAL,
29         SHUTDOWN_EPT_VIOLATION,
30         SHUTDOWN_NMI_EXCEPTION,
31         SHUTDOWN_UNHANDLED_EXIT_REASON,
32 };
33
34 #define SHUTDOWN_REASON(r)      ((r) >> 16)
35 #define SHUTDOWN_STATUS(r)      ((r) & 0xffff)
36
37 #endif /* __DUNE_COMPAT_H_ */