Home
last modified time | relevance | path

Searched hist:"3 cfad02380f761af99770f22c327e5eedfad3934" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/s390/kvm/
H A Dintercept.cdiff 3cfad02380f761af99770f22c327e5eedfad3934 Wed Jan 07 16:27:02 CET 2015 Thomas Huth <thuth@linux.vnet.ibm.com> KVM: s390: Take addressing mode into account for MVPG interception

The handler for MVPG partial execution interception does not take
the current CPU addressing mode into account yet, so addresses are
always treated as 64-bit addresses. For correct behaviour, we should
properly handle 24-bit and 31-bit addresses, too.

Since MVPG is defined to work with logical addresses, we can simply
use guest_translate_address() to achieve the required behaviour
(since DAT is disabled here, guest_translate_address() skips the MMU
translation and only translates the address via kvm_s390_logical_to_effective()
and kvm_s390_real_to_abs(), which is exactly what we want here).

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>