]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Move encryption lookup back into qemu driver file
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 9 Oct 2009 19:34:24 +0000 (20:34 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Nov 2009 12:15:01 +0000 (12:15 +0000)
commit4604c18f0b3671af7f1fed8d01916a6ca981c587
tree138ce38643cf45c5d1c7ad8d9c2f3afc099874e5
parent1cfd5a00eb54680e7b1d4fab013ef4c42fb3de62
Move encryption lookup back into qemu driver file

Decouple the monitor code from the virDomainDefPtr structure
by moving the disk encryption lookup code back into the
qemu_driver.c file. Instead provide a function callback to
the monitor code which can be invoked to retrieve encryption
data as required.

* src/qemu/qemu_driver.c: Add findDomainDiskEncryption,
  and findVolumeQcowPassphrase. Pass address of the method
  findVolumeQcowPassphrase into qemuMonitorOpen()
* src/qemu/qemu_monitor.c: Associate a disk
  encryption function callback with the qemuMonitorPtr
  object.
* src/qemu/qemu_monitor_text.c: Remove findDomainDiskEncryption
  and findVolumeQcowPassphrase.
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_text.c