diff options
author | Jerone Young <jyoung5@us.ibm.com> | 2007-11-19 18:06:34 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:08 -0500 |
commit | d9ecf9281069c4c8dd429e1eb61cb7e0f3dda6b4 (patch) | |
tree | c42f56ee70b8ac62288fa5d05cac2966992451e8 | |
parent | 19d30b164417e7580d7f8c495a03137e1a45d4a7 (diff) |
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>
-rw-r--r-- | include/asm-x86/kvm.h | 6 | ||||
-rw-r--r-- | include/linux/kvm.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h index c83a2ff35bf1..a2c65b5c4a85 100644 --- a/include/asm-x86/kvm.h +++ b/include/asm-x86/kvm.h | |||
@@ -76,4 +76,10 @@ struct kvm_regs { | |||
76 | __u64 rip, rflags; | 76 | __u64 rip, rflags; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | /* for KVM_GET_LAPIC and KVM_SET_LAPIC */ | ||
80 | #define KVM_APIC_REG_SIZE 0x400 | ||
81 | struct kvm_lapic_state { | ||
82 | char regs[KVM_APIC_REG_SIZE]; | ||
83 | }; | ||
84 | |||
79 | #endif | 85 | #endif |
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 0d83efc9462e..280ec0d85b4c 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -150,11 +150,6 @@ struct kvm_fpu { | |||
150 | __u32 pad2; | 150 | __u32 pad2; |
151 | }; | 151 | }; |
152 | 152 | ||
153 | /* for KVM_GET_LAPIC and KVM_SET_LAPIC */ | ||
154 | #define KVM_APIC_REG_SIZE 0x400 | ||
155 | struct kvm_lapic_state { | ||
156 | char regs[KVM_APIC_REG_SIZE]; | ||
157 | }; | ||
158 | 153 | ||
159 | struct kvm_segment { | 154 | struct kvm_segment { |
160 | __u64 base; | 155 | __u64 base; |