aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerone Young <jyoung5@us.ibm.com>2007-11-19 18:06:33 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:07 -0500
commit19d30b164417e7580d7f8c495a03137e1a45d4a7 (patch)
treea6ec84b1298540c9e75ea1a437d7e3060ea57b60
parentda1386a5bc43fa0faf17089a68c2991cf1d526c8 (diff)
KVM: Portability: Move kvm_regs to <asm/kvm.h>
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>
-rw-r--r--include/asm-x86/kvm.h10
-rw-r--r--include/linux/kvm.h9
2 files changed, 10 insertions, 9 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h
index 80752bccc756..c83a2ff35bf1 100644
--- a/include/asm-x86/kvm.h
+++ b/include/asm-x86/kvm.h
@@ -66,4 +66,14 @@ struct kvm_ioapic_state {
66#define KVM_IRQCHIP_PIC_SLAVE 1 66#define KVM_IRQCHIP_PIC_SLAVE 1
67#define KVM_IRQCHIP_IOAPIC 2 67#define KVM_IRQCHIP_IOAPIC 2
68 68
69/* for KVM_GET_REGS and KVM_SET_REGS */
70struct kvm_regs {
71 /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
72 __u64 rax, rbx, rcx, rdx;
73 __u64 rsi, rdi, rsp, rbp;
74 __u64 r8, r9, r10, r11;
75 __u64 r12, r13, r14, r15;
76 __u64 rip, rflags;
77};
78
69#endif 79#endif
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 1779c3d3bdc9..0d83efc9462e 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -134,15 +134,6 @@ struct kvm_run {
134 }; 134 };
135}; 135};
136 136
137/* for KVM_GET_REGS and KVM_SET_REGS */
138struct kvm_regs {
139 /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
140 __u64 rax, rbx, rcx, rdx;
141 __u64 rsi, rdi, rsp, rbp;
142 __u64 r8, r9, r10, r11;
143 __u64 r12, r13, r14, r15;
144 __u64 rip, rflags;
145};
146 137
147/* for KVM_GET_FPU and KVM_SET_FPU */ 138/* for KVM_GET_FPU and KVM_SET_FPU */
148struct kvm_fpu { 139struct kvm_fpu {