OSDN Git Service

KVM: s390: expose no-DAT to guest and migration support
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Mon, 29 Aug 2016 13:56:55 +0000 (15:56 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
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 <imbrenda@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/page-states.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/mm/pgtable.c