File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
testcases/kernel/kvm/include Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 62
62
63
63
64
64
/* CPUID constants */
65
+ #define CPUID_GET_MODEL_INFO 0x1
65
66
#define CPUID_GET_INPUT_RANGE 0x80000000
66
67
#define CPUID_GET_EXT_FEATURES 0x80000001
67
68
#define CPUID_GET_SVM_FEATURES 0x8000000a
68
69
69
70
70
71
/* Model-specific CPU register constants */
72
+ #define MSR_IA32_FEATURE_CONTROL 0x3a
71
73
#define MSR_SYSENTER_CS 0x174
72
74
#define MSR_SYSENTER_ESP 0x175
73
75
#define MSR_SYSENTER_EIP 0x176
95
97
#define VM_CR_SVMDIS (1 << 4)
96
98
97
99
/* Control register constants */
100
+ #define CR0_PE (1 << 0)
101
+ #define CR0_MP (1 << 1)
102
+ #define CR0_EM (1 << 2)
103
+ #define CR0_TS (1 << 3)
104
+ #define CR0_ET (1 << 4)
105
+ #define CR0_NE (1 << 5)
106
+ #define CR0_WP (1 << 16)
107
+ #define CR0_AM (1 << 18)
108
+ #define CR0_NW (1 << 29)
109
+ #define CR0_CD (1 << 30)
110
+ #define CR0_PG (1 << 31)
111
+
98
112
#define CR4_VME (1 << 0)
99
113
#define CR4_PVI (1 << 1)
100
114
#define CR4_TSD (1 << 2)
You can’t perform that action at this time.
0 commit comments