diff options
Diffstat (limited to 'include/asm-x86/kvm.h')
-rw-r--r-- | include/asm-x86/kvm.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h index 4837d759bec0..17afa81d6d66 100644 --- a/include/asm-x86/kvm.h +++ b/include/asm-x86/kvm.h | |||
@@ -151,5 +151,26 @@ struct kvm_cpuid { | |||
151 | struct kvm_cpuid_entry entries[0]; | 151 | struct kvm_cpuid_entry entries[0]; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | struct kvm_cpuid_entry2 { | ||
155 | __u32 function; | ||
156 | __u32 index; | ||
157 | __u32 flags; | ||
158 | __u32 eax; | ||
159 | __u32 ebx; | ||
160 | __u32 ecx; | ||
161 | __u32 edx; | ||
162 | __u32 padding[3]; | ||
163 | }; | ||
164 | |||
165 | #define KVM_CPUID_FLAG_SIGNIFCANT_INDEX 1 | ||
166 | #define KVM_CPUID_FLAG_STATEFUL_FUNC 2 | ||
167 | #define KVM_CPUID_FLAG_STATE_READ_NEXT 4 | ||
168 | |||
169 | /* for KVM_SET_CPUID2 */ | ||
170 | struct kvm_cpuid2 { | ||
171 | __u32 nent; | ||
172 | __u32 padding; | ||
173 | struct kvm_cpuid_entry2 entries[0]; | ||
174 | }; | ||
154 | 175 | ||
155 | #endif | 176 | #endif |