Use the new set_password and expire_password monitor commands
to set password.
We try to use that command first when setting a VNC/SPICE password. If
that doesn't work we fallback to the legacy VNC only password.
Based on patch by Daniel P. Berrange <berrange(a)redhat.com>.
---
src/qemu/qemu_driver.c | 138 +++++++++++++++++++++++++++++++++++++++++------
1 files changed, 120 insertions(+), 18 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 4877692..b4017af 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
...
@@ -8922,7 +8983,6 @@ qemuDomainChangeGraphics(struct qemud_driver
*driver,
virDomainGraphicsDefPtr dev)
{
virDomainGraphicsDefPtr olddev = qemuDomainFindGraphics(vm, dev);
- qemuDomainObjPrivatePtr priv = vm->privateData;
int ret = -1;
if (!olddev) {
...
This won't apply on current libvirt git. qemuDomainChangeGraphics() was moved
into src/qemu/qemu_hotplug.c on Dec 17.
Jirka