diff options
author | Paul Mackerras <paulus@samba.org> | 2013-10-15 05:43:02 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-01-09 04:15:00 -0500 |
commit | efff19122315f1431f6b02cd2983b15f5d3957bd (patch) | |
tree | 7c0e937099931df69b9efb510a9030c419767db9 /arch/powerpc/kernel | |
parent | 09548fdaf32ce77a68e7f9a8a3098c1306b04858 (diff) |
KVM: PPC: Store FP/VSX/VMX state in thread_fp/vr_state structures
This uses struct thread_fp_state and struct thread_vr_state to store
the floating-point, VMX/Altivec and VSX state, rather than flat arrays.
This makes transferring the state to/from the thread_struct simpler
and allows us to unify the get/set_one_reg implementations for the
VSX registers.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 2ea5cc033ec8..8403f9031d93 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -425,14 +425,11 @@ int main(void) | |||
425 | DEFINE(VCPU_GUEST_PID, offsetof(struct kvm_vcpu, arch.pid)); | 425 | DEFINE(VCPU_GUEST_PID, offsetof(struct kvm_vcpu, arch.pid)); |
426 | DEFINE(VCPU_GPRS, offsetof(struct kvm_vcpu, arch.gpr)); | 426 | DEFINE(VCPU_GPRS, offsetof(struct kvm_vcpu, arch.gpr)); |
427 | DEFINE(VCPU_VRSAVE, offsetof(struct kvm_vcpu, arch.vrsave)); | 427 | DEFINE(VCPU_VRSAVE, offsetof(struct kvm_vcpu, arch.vrsave)); |
428 | DEFINE(VCPU_FPRS, offsetof(struct kvm_vcpu, arch.fpr)); | 428 | DEFINE(VCPU_FPRS, offsetof(struct kvm_vcpu, arch.fp.fpr)); |
429 | DEFINE(VCPU_FPSCR, offsetof(struct kvm_vcpu, arch.fpscr)); | 429 | DEFINE(VCPU_FPSCR, offsetof(struct kvm_vcpu, arch.fp.fpscr)); |
430 | #ifdef CONFIG_ALTIVEC | 430 | #ifdef CONFIG_ALTIVEC |
431 | DEFINE(VCPU_VRS, offsetof(struct kvm_vcpu, arch.vr)); | 431 | DEFINE(VCPU_VRS, offsetof(struct kvm_vcpu, arch.vr.vr)); |
432 | DEFINE(VCPU_VSCR, offsetof(struct kvm_vcpu, arch.vscr)); | 432 | DEFINE(VCPU_VSCR, offsetof(struct kvm_vcpu, arch.vr.vscr)); |
433 | #endif | ||
434 | #ifdef CONFIG_VSX | ||
435 | DEFINE(VCPU_VSRS, offsetof(struct kvm_vcpu, arch.vsr)); | ||
436 | #endif | 433 | #endif |
437 | DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); | 434 | DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); |
438 | DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); | 435 | DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); |