summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJerone Young <jyoung5@us.ibm.com>2007-11-19 17:06:35 -0600
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:08 +0200
commit3a56b20104f51bd6caf07e49fa1e3c09bee222e5 (patch)
treeb0cb4975142644942361c17196c2470aae9fb4a0 /include/asm-x86
parentd9ecf9281069c4c8dd429e1eb61cb7e0f3dda6b4 (diff)
downloadop-kernel-dev-3a56b20104f51bd6caf07e49fa1e3c09bee222e5.zip
op-kernel-dev-3a56b20104f51bd6caf07e49fa1e3c09bee222e5.tar.gz
KVM: Portability: Move kvm_segment & kvm_dtable structure to <asm/kvm.h>
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>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/kvm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h
index a2c65b5..644a325 100644
--- a/include/asm-x86/kvm.h
+++ b/include/asm-x86/kvm.h
@@ -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
OpenPOWER on IntegriCloud