KVM: Portability: Move structure lapic_state to <asm/kvm.h>
authorJerone Young <jyoung5@us.ibm.com>
Mon, 19 Nov 2007 23:06:34 +0000 (17:06 -0600)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:08 +0000 (17:53 +0200)
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>
include/asm-x86/kvm.h
include/linux/kvm.h

index c83a2ff..a2c65b5 100644 (file)
@@ -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
index 0d83efc..280ec0d 100644 (file)
@@ -150,11 +150,6 @@ struct kvm_fpu {
        __u32 pad2;
 };
 
-/* for KVM_GET_LAPIC and KVM_SET_LAPIC */
-#define KVM_APIC_REG_SIZE 0x400
-struct kvm_lapic_state {
-       char regs[KVM_APIC_REG_SIZE];
-};
 
 struct kvm_segment {
        __u64 base;