aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2010-02-26 16:37:32 -0500
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2010-02-26 16:37:30 -0500
commitf64ca21714f114a78b6c19ceabc7745b29913efc (patch)
treeef01f90c3c0547c37f6259de2fe274a3a47e082a /arch/s390/kvm/kvm-s390.c
parent987bcdacb18a3adc2a48d85c9b005069c2f4dd7b (diff)
[S390] zfcpdump: remove cross arch dump support
Remove support to be able to dump 31 bit systems with a 64 bit dumper. This is mostly useless since no distro ships 31 bit kernels together with a 64 bit dumper. We also get rid of a bit of hacky code. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index f8bcaefd7d34..70e799eefec9 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -603,45 +603,45 @@ int __kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr)
603 } else 603 } else
604 prefix = 0; 604 prefix = 0;
605 605
606 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, fp_regs), 606 if (__guestcopy(vcpu, addr + offsetof(struct save_area, fp_regs),
607 vcpu->arch.guest_fpregs.fprs, 128, prefix)) 607 vcpu->arch.guest_fpregs.fprs, 128, prefix))
608 return -EFAULT; 608 return -EFAULT;
609 609
610 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, gp_regs), 610 if (__guestcopy(vcpu, addr + offsetof(struct save_area, gp_regs),
611 vcpu->arch.guest_gprs, 128, prefix)) 611 vcpu->arch.guest_gprs, 128, prefix))
612 return -EFAULT; 612 return -EFAULT;
613 613
614 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, psw), 614 if (__guestcopy(vcpu, addr + offsetof(struct save_area, psw),
615 &vcpu->arch.sie_block->gpsw, 16, prefix)) 615 &vcpu->arch.sie_block->gpsw, 16, prefix))
616 return -EFAULT; 616 return -EFAULT;
617 617
618 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, pref_reg), 618 if (__guestcopy(vcpu, addr + offsetof(struct save_area, pref_reg),
619 &vcpu->arch.sie_block->prefix, 4, prefix)) 619 &vcpu->arch.sie_block->prefix, 4, prefix))
620 return -EFAULT; 620 return -EFAULT;
621 621
622 if (__guestcopy(vcpu, 622 if (__guestcopy(vcpu,
623 addr + offsetof(struct save_area_s390x, fp_ctrl_reg), 623 addr + offsetof(struct save_area, fp_ctrl_reg),
624 &vcpu->arch.guest_fpregs.fpc, 4, prefix)) 624 &vcpu->arch.guest_fpregs.fpc, 4, prefix))
625 return -EFAULT; 625 return -EFAULT;
626 626
627 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, tod_reg), 627 if (__guestcopy(vcpu, addr + offsetof(struct save_area, tod_reg),
628 &vcpu->arch.sie_block->todpr, 4, prefix)) 628 &vcpu->arch.sie_block->todpr, 4, prefix))
629 return -EFAULT; 629 return -EFAULT;
630 630
631 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, timer), 631 if (__guestcopy(vcpu, addr + offsetof(struct save_area, timer),
632 &vcpu->arch.sie_block->cputm, 8, prefix)) 632 &vcpu->arch.sie_block->cputm, 8, prefix))
633 return -EFAULT; 633 return -EFAULT;
634 634
635 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, clk_cmp), 635 if (__guestcopy(vcpu, addr + offsetof(struct save_area, clk_cmp),
636 &vcpu->arch.sie_block->ckc, 8, prefix)) 636 &vcpu->arch.sie_block->ckc, 8, prefix))
637 return -EFAULT; 637 return -EFAULT;
638 638
639 if (__guestcopy(vcpu, addr + offsetof(struct save_area_s390x, acc_regs), 639 if (__guestcopy(vcpu, addr + offsetof(struct save_area, acc_regs),
640 &vcpu->arch.guest_acrs, 64, prefix)) 640 &vcpu->arch.guest_acrs, 64, prefix))
641 return -EFAULT; 641 return -EFAULT;
642 642
643 if (__guestcopy(vcpu, 643 if (__guestcopy(vcpu,
644 addr + offsetof(struct save_area_s390x, ctrl_regs), 644 addr + offsetof(struct save_area, ctrl_regs),
645 &vcpu->arch.sie_block->gcr, 128, prefix)) 645 &vcpu->arch.sie_block->gcr, 128, prefix))
646 return -EFAULT; 646 return -EFAULT;
647 return 0; 647 return 0;