]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support 'block_passwd' command for QEMU disk encryption
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Feb 2010 14:28:16 +0000 (14:28 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Feb 2010 17:25:02 +0000 (17:25 +0000)
commitc31a116b72e34a7aeef4fe0f14646a963f42cda9
treedf4e7e55df141cdbc5f729b1842c0be2845b1f30
parentdfab48ac549add956727841c855b2062f2e91130
Support 'block_passwd' command for QEMU disk encryption

The old text mode monitor prompts for a password when disks are
encrypted. This interactive approach doesn't work for JSON mode
monitor. Thus there is a new 'block_passwd' command that can be
used.

* src/qemu/qemu_driver.c: Split out code for looking up a disk
  secret from findVolumeQcowPassphrase, into a new method
  getVolumeQcowPassphrase. Enhance qemuInitPasswords() to also
  set the disk encryption password via the monitor
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
  src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_json.h,
  src/qemu/qemu_monitor_text.c, src/qemu/qemu_monitor_text.h: Add
  support for the 'block_passwd' monitor command.
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h