]> err.no Git - linux-2.6/commitdiff
KVM: Portability: Move kvm_segment & kvm_dtable structure to <asm/kvm.h>
authorJerone Young <jyoung5@us.ibm.com>
Mon, 19 Nov 2007 23:06:35 +0000 (17:06 -0600)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:08 +0000 (17:53 +0200)
This patch moves structures:
kvm_segment
kvm_dtable
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>
include/asm-x86/kvm.h
include/linux/kvm.h

index a2c65b5c4a85267896262c118210477c689d1479..644a325077f0f8b65bbffc9120118766bf2aaa85 100644 (file)
@@ -82,4 +82,21 @@ struct kvm_lapic_state {
        char regs[KVM_APIC_REG_SIZE];
 };
 
+struct kvm_segment {
+       __u64 base;
+       __u32 limit;
+       __u16 selector;
+       __u8  type;
+       __u8  present, dpl, db, s, l, g, avl;
+       __u8  unusable;
+       __u8  padding;
+};
+
+struct kvm_dtable {
+       __u64 base;
+       __u16 limit;
+       __u16 padding[3];
+};
+
+
 #endif
index 280ec0d85b4cdade72037af08c58038b1386264a..442cb58bb73cf33d96f240a45c5d9fed1c723acf 100644 (file)
@@ -151,21 +151,6 @@ struct kvm_fpu {
 };
 
 
-struct kvm_segment {
-       __u64 base;
-       __u32 limit;
-       __u16 selector;
-       __u8  type;
-       __u8  present, dpl, db, s, l, g, avl;
-       __u8  unusable;
-       __u8  padding;
-};
-
-struct kvm_dtable {
-       __u64 base;
-       __u16 limit;
-       __u16 padding[3];
-};
 
 /* for KVM_GET_SREGS and KVM_SET_SREGS */
 struct kvm_sregs {