KVM: s390: expose no-DAT to guest and migration support
authorClaudio Imbrenda <[email protected]>
Mon, 29 Aug 2016 13:56:55 +0000 (15:56 +0200)
committerChristian Borntraeger <[email protected]>
Tue, 29 Aug 2017 13:15:56 +0000 (15:15 +0200)
commit1bab1c02aff73eb5c3001e97f48e64ab6a80988a
tree799e41232b89f29d072049c0eb2c28479d5ef5f6
parent631aebfee8261d66597ce0f88ba046c77a0e415e
KVM: s390: expose no-DAT to guest and migration support

The STFLE bit 147 indicates whether the ESSA no-DAT operation code is
valid, the bit is not normally provided to the host; the host is
instead provided with an SCLP bit that indicates whether guests can
support the feature.

This patch:
* enables the STFLE bit in the guest if the corresponding SCLP bit is
  present in the host.
* adds support for migrating the no-DAT bit in the PGSTEs
* fixes the software interpretation of the ESSA instruction that is
  used when migrating, both for the new operation code and for the old
  "set stable", as per specifications.

Signed-off-by: Claudio Imbrenda <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
arch/s390/include/asm/page-states.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/mm/pgtable.c