aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/kvm.h
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2008-01-08 02:04:50 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 11:01:22 -0500
commit6f723c7911e7827091586ae63f4040874eeb75e5 (patch)
treefd048c1c6cfd47131fc03e97a55520562d1f152b /include/asm-x86/kvm.h
parent571008daccc17c03ccec810922c2bcaed86b15c1 (diff)
KVM: Portability: Move kvm_fpu to asm-x86/kvm.h
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>
Diffstat (limited to 'include/asm-x86/kvm.h')
-rw-r--r--include/asm-x86/kvm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h
index 17afa81d6d66..7a71120426a3 100644
--- a/include/asm-x86/kvm.h
+++ b/include/asm-x86/kvm.h
@@ -114,6 +114,21 @@ struct kvm_sregs {
114 __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64]; 114 __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64];
115}; 115};
116 116
117/* for KVM_GET_FPU and KVM_SET_FPU */
118struct kvm_fpu {
119 __u8 fpr[8][16];
120 __u16 fcw;
121 __u16 fsw;
122 __u8 ftwx; /* in fxsave format */
123 __u8 pad1;
124 __u16 last_opcode;
125 __u64 last_ip;
126 __u64 last_dp;
127 __u8 xmm[16][16];
128 __u32 mxcsr;
129 __u32 pad2;
130};
131
117struct kvm_msr_entry { 132struct kvm_msr_entry {
118 __u32 index; 133 __u32 index;
119 __u32 reserved; 134 __u32 reserved;