]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: forward ESOP if available
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 21 Jan 2016 12:22:54 +0000 (13:22 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:13 +0000 (12:07 +0200)
commit3dea2b5e4d58074f830bbd5e2f6d4adf5f1c6d5a
tree1b7a2b7c89d81d36515838537741e72c57d4ea65
parentbf216fe288e6a1e4b1287d4dc6e21b7203b20d35
KVM: s390: forward ESOP if available

ESOP guarantees that during a protection exception, bit 61 of real location
168-175 will only be set to 1 if it was because of ALCP or DATP. If the
exception is due to LAP or KCP, the bit will always be set to 0.

The old SOP definition allowed bit 61 to be unpredictable in case of LAP
or KCP in some conditions. So ESOP replaces this unpredictability by
a guarantee.

Therefore, we can directly forward ESOP if it is available on our machine.
We don't have to do anything when ESOP is disabled - the guest will simply
expect unpredictable values. Our guest access functions are already
handling ESOP properly.

Please note that future functionality in KVM will require knowledge about
ESOP being enabled for a guest or not.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/kvm-s390.c