diff options
author | Jerone Young <jyoung5@us.ibm.com> | 2007-11-19 17:06:33 -0600 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:53:07 +0200 |
commit | 19d30b164417e7580d7f8c495a03137e1a45d4a7 (patch) | |
tree | a6ec84b1298540c9e75ea1a437d7e3060ea57b60 /include/asm-x86 | |
parent | da1386a5bc43fa0faf17089a68c2991cf1d526c8 (diff) | |
download | op-kernel-dev-19d30b164417e7580d7f8c495a03137e1a45d4a7.zip op-kernel-dev-19d30b164417e7580d7f8c495a03137e1a45d4a7.tar.gz |
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>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/kvm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h index 80752bc..c83a2ff 100644 --- a/include/asm-x86/kvm.h +++ b/include/asm-x86/kvm.h @@ -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 |