OSDN Git Service

KVM: s390: enable MSA9 keywrapping functions depending on cpu model
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 3 Apr 2019 07:00:35 +0000 (03:00 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 25 Apr 2019 06:26:21 +0000 (02:26 -0400)
commit8ec2fa52eac53bff7ef1cedbc4ad8af650ec937c
treefed0a614df04aa2be254111ae9c228e4d264aa15
parent4f45b90e1c03466202fca7f62eaf32243f220830
KVM: s390: enable MSA9 keywrapping functions depending on cpu model

Instead of adding a new machine option to disable/enable the keywrapping
options of pckmo (like for AES and DEA) we can now use the CPU model to
decide. As ECC is also wrapped with the AES key we need that to be
enabled.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/vsie.c