]> xenbits.xensource.com Git - libvirt.git/commit
libvirt: qemu: enable/disable protected key management ops
authorTony Krowiak <aekrowia@us.ibm.com>
Mon, 27 Apr 2015 21:57:29 +0000 (17:57 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 May 2015 07:54:16 +0000 (09:54 +0200)
commit740c83f5b54ae5bff71244be351d9070834d04f4
treed992a5da3de6002ed66214fca62e80de168aa51f
parent73eda71028ce372bb0b0010ca9836025101bff8a
libvirt: qemu: enable/disable protected key management ops

Introduces two new -machine option parameters to the QEMU command to
enable/disable the CPACF protected key management operations for a guest:

    aes-key-wrap='on|off'
    dea-key-wrap='on|off'

The QEMU code maps the corresponding domain configuration elements to the
QEMU -machine option parameters to create the QEMU command:

    <cipher name='aes' state='on'>   --> aes-key-wrap=on
    <cipher name='aes' state='off'>  --> aes-key-wrap=off
    <cipher name='dea' state='on'>   --> dea-key-wrap=on
    <cipher name='dea' state='off'>  --> dea-key-wrap=off

Signed-off-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com>
Signed-off-by: Daniel Hansel <daniel.hansel@linux.vnet.ibm.com>
Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c