From: Heiko Carstens Date: Wed, 1 Jan 2014 15:21:47 +0000 (+0100) Subject: KVM: s390: add kvm_s390_logical_to_effective() helper X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~8^2~67^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072c9878eedc2f1ef2f0d19ac7680beeee97bf05;p=pandora-kernel.git KVM: s390: add kvm_s390_logical_to_effective() helper Add kvm_s390_logical_to_effective() helper which converts a guest vcpu's logical storage address to a guest vcpu effective address by applying the rules of the vcpu's addressing mode defined by PSW bits 31 and 32 (extendended and basic addressing mode). Depending on the vcpu's addressing mode the upper 40 bits (24 bit addressing mode), 33 bits (31 bit addressing mode) or no bits (64 bit addressing mode) will be zeroed and the remaining bits will be returned. Signed-off-by: Heiko Carstens Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed