]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
KVM: Portability: Move kvm_regs to <asm/kvm.h>
authorJerone Young <jyoung5@us.ibm.com>
Mon, 19 Nov 2007 23:06:33 +0000 (17:06 -0600)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:07 +0000 (17:53 +0200)
This patch moves structure kvm_regs to include/asm-x86/kvm.h.
Each architecture will need to create there own version of this
structure.

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 80752bccc756648e3fdbe68c6d4e32b7147069d7..c83a2ff35bf1a9c0af31a90e5418ec0c712eb9de 100644 (file)
@@ -66,4 +66,14 @@ struct kvm_ioapic_state {
 #define KVM_IRQCHIP_PIC_SLAVE    1
 #define KVM_IRQCHIP_IOAPIC       2
 
+/* for KVM_GET_REGS and KVM_SET_REGS */
+struct kvm_regs {
+       /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
+       __u64 rax, rbx, rcx, rdx;
+       __u64 rsi, rdi, rsp, rbp;
+       __u64 r8,  r9,  r10, r11;
+       __u64 r12, r13, r14, r15;
+       __u64 rip, rflags;
+};
+
 #endif
index 1779c3d3bdc9c55eeb1ecd6a9043b60c07371b0a..0d83efc9462e891b9a5f7fd86c700e5c2e4a6a49 100644 (file)
@@ -134,15 +134,6 @@ struct kvm_run {
        };
 };
 
-/* for KVM_GET_REGS and KVM_SET_REGS */
-struct kvm_regs {
-       /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
-       __u64 rax, rbx, rcx, rdx;
-       __u64 rsi, rdi, rsp, rbp;
-       __u64 r8,  r9,  r10, r11;
-       __u64 r12, r13, r14, r15;
-       __u64 rip, rflags;
-};
 
 /* for KVM_GET_FPU and KVM_SET_FPU */
 struct kvm_fpu {