[PATCH v6 08/14] KVM: s390: Move common code of mem_op functions into functions