summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJerone Young <jyoung5@us.ibm.com>2007-11-19 17:06:34 -0600
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:08 +0200
commitd9ecf9281069c4c8dd429e1eb61cb7e0f3dda6b4 (patch)
treec42f56ee70b8ac62288fa5d05cac2966992451e8 /include/asm-x86
parent19d30b164417e7580d7f8c495a03137e1a45d4a7 (diff)
downloadop-kernel-dev-d9ecf9281069c4c8dd429e1eb61cb7e0f3dda6b4.zip
op-kernel-dev-d9ecf9281069c4c8dd429e1eb61cb7e0f3dda6b4.tar.gz
KVM: Portability: Move structure lapic_state to <asm/kvm.h>
This patch moves structure lapic_state 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h
index c83a2ff..a2c65b5 100644
--- a/include/asm-x86/kvm.h
+++ b/include/asm-x86/kvm.h
@@ -76,4 +76,10 @@ struct kvm_regs {
__u64 rip, rflags;
};
+/* for KVM_GET_LAPIC and KVM_SET_LAPIC */
+#define KVM_APIC_REG_SIZE 0x400
+struct kvm_lapic_state {
+ char regs[KVM_APIC_REG_SIZE];
+};
+
#endif
OpenPOWER on IntegriCloud