]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: Portability: Move kvm_fpu to asm-x86/kvm.h
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Tue, 8 Jan 2008 07:04:50 +0000 (08:04 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:22 +0000 (18:01 +0200)
This patch moves kvm_fpu asm-x86/kvm.h to allow every architecture to
define an own representation used for KVM_GET_FPU/KVM_SET_FPU.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Acked-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
include/asm-x86/kvm.h
include/linux/kvm.h

index 17afa81d6d6657c83c0c457a7807744044354215..7a71120426a354155d377e3f7f952d92c4300862 100644 (file)
@@ -114,6 +114,21 @@ struct kvm_sregs {
        __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64];
 };
 
+/* for KVM_GET_FPU and KVM_SET_FPU */
+struct kvm_fpu {
+       __u8  fpr[8][16];
+       __u16 fcw;
+       __u16 fsw;
+       __u8  ftwx;  /* in fxsave format */
+       __u8  pad1;
+       __u16 last_opcode;
+       __u64 last_ip;
+       __u64 last_dp;
+       __u8  xmm[16][16];
+       __u32 mxcsr;
+       __u32 pad2;
+};
+
 struct kvm_msr_entry {
        __u32 index;
        __u32 reserved;
index b27a381db5e88d0351a560e3761e4756f3000c15..4de4fd2d8607d19df5f9eb4cb3a88325fd3d60f8 100644 (file)
@@ -142,23 +142,6 @@ struct kvm_run {
        };
 };
 
-
-/* for KVM_GET_FPU and KVM_SET_FPU */
-struct kvm_fpu {
-       __u8  fpr[8][16];
-       __u16 fcw;
-       __u16 fsw;
-       __u8  ftwx;  /* in fxsave format */
-       __u8  pad1;
-       __u16 last_opcode;
-       __u64 last_ip;
-       __u64 last_dp;
-       __u8  xmm[16][16];
-       __u32 mxcsr;
-       __u32 pad2;
-};
-
-
 /* for KVM_TRANSLATE */
 struct kvm_translation {
        /* in */