Skip to content

Commit

Permalink
KVM: Portability: Move kvm_regs to <asm/kvm.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerone Young authored and Avi Kivity committed Jan 30, 2008
1 parent da1386a commit 19d30b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 10 additions & 0 deletions include/asm-x86/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 19d30b1

Please sign in to comment.