]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add luks support for domain disk
authorJohn Ferlan <jferlan@redhat.com>
Thu, 2 Jun 2016 20:28:28 +0000 (16:28 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 19 Jul 2016 13:40:10 +0000 (09:40 -0400)
commitda86c6c22674ccc147224afa2740e33d8cbdbf22
treef05e4b86a0e4d55997dac0979c007dec9e2c7dda
parentb7b3a51e8ab7c95b7ffab6b8d727338d71c37c55
qemu: Add luks support for domain disk

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1301021

Generate the luks command line using the AES secret key to encrypt the
luks secret. A luks secret object will be in addition to a an AES secret.

For hotplug, check if the encinfo exists and if so, add the AES secret
for the passphrase for the secret object used to decrypt the device.

Modify/augment the fakeSecret* in qemuxml2argvtest in order to handle
find a uuid or a volume usage with a specific path prefix in the XML
(corresponds to the already generated XML tests). Add error message
when the 'usageID' is not 'mycluster_myname'. Commit id '1d632c39'
altered the error message generation to rely on the errors from the
secret_driver (or it's faked replacement).

Add the .args output for adding the LUKS disk to the domain

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
tests/qemuxml2argvdata/qemuxml2argv-luks-disks.args [new file with mode: 0644]
tests/qemuxml2argvtest.c