KVM: CPACF: Enable MSA4 instructions for kvm guest
authorTony Krowiak <akrowiak@linux.vnet.ibm.com>
Fri, 27 Jun 2014 18:46:01 +0000 (14:46 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Sep 2014 10:19:05 +0000 (12:19 +0200)
commit5102ee879539ebd2e0de1eb93290e3d691973e79
tree1672adbecd97fa7e06c8c5514bbf4e520bee6a26
parentfd2752352bbc98850d83b5448a288d8991590317
KVM: CPACF: Enable MSA4 instructions for kvm guest

We have to provide a per guest crypto block for the CPUs to
enable MSA4 instructions. According to icainfo on z196 or
later this enables CCM-AES-128, CMAC-AES-128, CMAC-AES-192
and CMAC-AES-256.

Signed-off-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[split MSA4/protected key into two patches]
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c