]> git.proxmox.com Git - mirror_qemu.git/commit
s390x: CPACF: Handle key wrap machine options
authorTony Krowiak <akrowiak@linux.vnet.ibm.com>
Thu, 12 Mar 2015 12:53:51 +0000 (13:53 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 16 Mar 2015 09:20:11 +0000 (10:20 +0100)
commit2eb1cd0768af18fb2398ee7b590e4b81e0e504f9
treee5df5f14385f9ed8a269f455d4e7550bb1ab4ce3
parent2b147555f78c3c20080b201fd1506467fa0ddf43
s390x: CPACF: Handle key wrap machine options

Check for the aes_key_wrap and dea_key_wrap machine options and set the
appropriate KVM device attribute(s) to tell the kernel to enable or disable
the AES/DEA protected key functions for the guest domain.

This patch introduces two new machine options for indicating the state of
AES/DEA key wrapping functions.  This controls whether the guest will
have access to the AES/DEA crypto functions.

aes_key_wrap="on | off" is changed to aes-key-wrap="on | off"
dea_key_wrap="on | off" is changed to dea-key-wrap="on | off"

Check for the aes-key-wrap and dea-key-wrap machine options and set the
appropriate KVM device attribute(s) to tell the kernel to enable or disable
the AES/DEA protected key functions for the guest domain.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Message-Id: <1426164834-38648-4-git-send-email-jfrei@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-ccw.c
qemu-options.hx
target-s390x/kvm.c