aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorTony Krowiak <akrowiak@linux.vnet.ibm.com>2015-01-13 11:33:26 -0500
committerChristian Borntraeger <borntraeger@de.ibm.com>2015-02-09 06:44:12 -0500
commit45c9b47c5883d02abab6c7c7788e3d97a2f158e1 (patch)
treeda38a436bce71e8c93126a1c1b00d7e1d85659a9 /arch/s390/include/asm
parentf3d0bd6c7f07d2be4b429230386d49f1b1b14f1c (diff)
KVM: s390/CPACF: Choose crypto control block format
We need to specify a different format for the crypto control block depending on whether the APXA facility is installed or not. Let's test for it by executing the PQAP(QCI) function and use either a format-1 or a format-2 crypto control block accordingly. This is a host only change for z13 and does not affect the guest view. Signed-off-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h
index f79058e3fd98..77ae01444e98 100644
--- a/arch/s390/include/asm/kvm_host.h
+++ b/arch/s390/include/asm/kvm_host.h
@@ -163,6 +163,7 @@ struct kvm_s390_sie_block {
163 __u64 tecmc; /* 0x00e8 */ 163 __u64 tecmc; /* 0x00e8 */
164 __u8 reservedf0[12]; /* 0x00f0 */ 164 __u8 reservedf0[12]; /* 0x00f0 */
165#define CRYCB_FORMAT1 0x00000001 165#define CRYCB_FORMAT1 0x00000001
166#define CRYCB_FORMAT2 0x00000003
166 __u32 crycbd; /* 0x00fc */ 167 __u32 crycbd; /* 0x00fc */
167 __u64 gcr[16]; /* 0x0100 */ 168 __u64 gcr[16]; /* 0x0100 */
168 __u64 gbea; /* 0x0180 */ 169 __u64 gbea; /* 0x0180 */
@@ -516,6 +517,7 @@ struct kvm_s390_crypto_cb {
516 __u8 reserved00[72]; /* 0x0000 */ 517 __u8 reserved00[72]; /* 0x0000 */
517 __u8 dea_wrapping_key_mask[24]; /* 0x0048 */ 518 __u8 dea_wrapping_key_mask[24]; /* 0x0048 */
518 __u8 aes_wrapping_key_mask[32]; /* 0x0060 */ 519 __u8 aes_wrapping_key_mask[32]; /* 0x0060 */
520 __u8 reserved80[128]; /* 0x0080 */
519}; 521};
520 522
521struct kvm_arch{ 523struct kvm_arch{