Skip to content

Commit d7271ba

Browse files
hcahcaAlexander Gordeev
authored andcommitted
KVM: s390: remove superfluous save_fpu_regs() call
The save_fpu_regs() call in kvm_arch_vcpu_ioctl_get_fpu() is pointless: it will save the current user space fpu context to the thread's save area. But the code is accessing only the vcpu's save are / mapped register area, which in this case are not the same. Therefore remove the confusing call. Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent 7026442 commit d7271ba

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/s390/kvm/kvm-s390.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4331,8 +4331,6 @@ int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu)
43314331
{
43324332
vcpu_load(vcpu);
43334333

4334-
/* make sure we have the latest values */
4335-
save_fpu_regs();
43364334
if (MACHINE_HAS_VX)
43374335
convert_vx_to_fp((freg_t *) fpu->fprs,
43384336
(__vector128 *) vcpu->run->s.regs.vrs);

0 commit comments

Comments
 (0)