Skip to content

Commit

Permalink
KVM: Portability: Move cpuid structures to <asm/kvm.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerone Young authored and Avi Kivity committed Jan 30, 2008
1 parent 244d57e commit a162dd5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 17 additions & 0 deletions include/asm-x86/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,21 @@ struct kvm_msr_list {
};


struct kvm_cpuid_entry {
__u32 function;
__u32 eax;
__u32 ebx;
__u32 ecx;
__u32 edx;
__u32 padding;
};

/* for KVM_SET_CPUID */
struct kvm_cpuid {
__u32 nent;
__u32 padding;
struct kvm_cpuid_entry entries[0];
};


#endif
16 changes: 0 additions & 16 deletions include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,6 @@ struct kvm_dirty_log {
};
};

struct kvm_cpuid_entry {
__u32 function;
__u32 eax;
__u32 ebx;
__u32 ecx;
__u32 edx;
__u32 padding;
};

/* for KVM_SET_CPUID */
struct kvm_cpuid {
__u32 nent;
__u32 padding;
struct kvm_cpuid_entry entries[0];
};

/* for KVM_SET_SIGNAL_MASK */
struct kvm_signal_mask {
__u32 len;
Expand Down

0 comments on commit a162dd5

Please sign in to comment.