diff options
author | Jerone Young <jyoung5@us.ibm.com> | 2007-11-19 18:06:37 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:08 -0500 |
commit | a162dd58736d446f52ca45b170508c3a5868807b (patch) | |
tree | dce2f29ccde737dba386d14986bfd77a9ec42456 /include | |
parent | 244d57ece94b56692c61f2d507d1251b5844c550 (diff) |
KVM: Portability: Move cpuid structures to <asm/kvm.h>
This patch moves structures:
kvm_cpuid_entry
kvm_cpuid
from include/linux/kvm.h to include/asm-x86/kvm.h
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/kvm.h | 17 | ||||
-rw-r--r-- | include/linux/kvm.h | 16 |
2 files changed, 17 insertions, 16 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h index 32c7dda61474..4837d759bec0 100644 --- a/include/asm-x86/kvm.h +++ b/include/asm-x86/kvm.h | |||
@@ -135,4 +135,21 @@ struct kvm_msr_list { | |||
135 | }; | 135 | }; |
136 | 136 | ||
137 | 137 | ||
138 | struct kvm_cpuid_entry { | ||
139 | __u32 function; | ||
140 | __u32 eax; | ||
141 | __u32 ebx; | ||
142 | __u32 ecx; | ||
143 | __u32 edx; | ||
144 | __u32 padding; | ||
145 | }; | ||
146 | |||
147 | /* for KVM_SET_CPUID */ | ||
148 | struct kvm_cpuid { | ||
149 | __u32 nent; | ||
150 | __u32 padding; | ||
151 | struct kvm_cpuid_entry entries[0]; | ||
152 | }; | ||
153 | |||
154 | |||
138 | #endif | 155 | #endif |
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index e6867aa6daf6..fd4f900fcce3 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -192,22 +192,6 @@ struct kvm_dirty_log { | |||
192 | }; | 192 | }; |
193 | }; | 193 | }; |
194 | 194 | ||
195 | struct kvm_cpuid_entry { | ||
196 | __u32 function; | ||
197 | __u32 eax; | ||
198 | __u32 ebx; | ||
199 | __u32 ecx; | ||
200 | __u32 edx; | ||
201 | __u32 padding; | ||
202 | }; | ||
203 | |||
204 | /* for KVM_SET_CPUID */ | ||
205 | struct kvm_cpuid { | ||
206 | __u32 nent; | ||
207 | __u32 padding; | ||
208 | struct kvm_cpuid_entry entries[0]; | ||
209 | }; | ||
210 | |||
211 | /* for KVM_SET_SIGNAL_MASK */ | 195 | /* for KVM_SET_SIGNAL_MASK */ |
212 | struct kvm_signal_mask { | 196 | struct kvm_signal_mask { |
213 | __u32 len; | 197 | __u32 len; |