Browse Source

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>
Jerone Young 17 years ago
parent
commit
d9ecf92810
2 changed files with 6 additions and 5 deletions
  1. 6 0
      include/asm-x86/kvm.h
  2. 0 5
      include/linux/kvm.h

+ 6 - 0
include/asm-x86/kvm.h

@@ -76,4 +76,10 @@ struct kvm_regs {
 	__u64 rip, rflags;
 	__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
 #endif

+ 0 - 5
include/linux/kvm.h

@@ -150,11 +150,6 @@ struct kvm_fpu {
 	__u32 pad2;
 	__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 {
 struct kvm_segment {
 	__u64 base;
 	__u64 base;