diff options
author | Jes Sorensen <jes@sgi.com> | 2008-12-18 12:17:51 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 10:02:50 +0100 |
commit | e9a999fe1feaddb71bffbacbbd68e0da8ca8b50b (patch) | |
tree | 57e8758433e31f8d70251aff9ce32fdd30ad8c18 /arch/ia64/include/asm/kvm_host.h | |
parent | KVM: x86: Wire-up hardware breakpoints for guest debugging (diff) | |
download | linux-e9a999fe1feaddb71bffbacbbd68e0da8ca8b50b.tar.xz linux-e9a999fe1feaddb71bffbacbbd68e0da8ca8b50b.zip |
KVM: ia64: stack get/restore patch
Implement KVM_IA64_VCPU_[GS]ET_STACK ioctl calls. This is required
for live migrations.
Patch is based on previous implementation that was part of old
GET/SET_REGS ioctl calls.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/include/asm/kvm_host.h')
-rw-r--r-- | arch/ia64/include/asm/kvm_host.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h index 348663661659..7da0c0963226 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm/kvm_host.h @@ -112,7 +112,11 @@ #define VCPU_STRUCT_SHIFT 16 #define VCPU_STRUCT_SIZE (__IA64_UL_CONST(1) << VCPU_STRUCT_SHIFT) -#define KVM_STK_OFFSET VCPU_STRUCT_SIZE +/* + * This must match KVM_IA64_VCPU_STACK_{SHIFT,SIZE} arch/ia64/include/asm/kvm.h + */ +#define KVM_STK_SHIFT 16 +#define KVM_STK_OFFSET (__IA64_UL_CONST(1)<< KVM_STK_SHIFT) #define KVM_VM_STRUCT_SHIFT 19 #define KVM_VM_STRUCT_SIZE (__IA64_UL_CONST(1) << KVM_VM_STRUCT_SHIFT) |