]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: prepare secret for the graphics upfront
authorJán Tomko <jtomko@redhat.com>
Mon, 14 Jan 2019 13:24:27 +0000 (14:24 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 22 Jan 2019 11:18:28 +0000 (12:18 +0100)
commit2c7791a869d15221f58834be71414690356ce4cc
tree646ca2acdc1c6a9d21f0a0671f90ee278163418e
parentea3c3f88462153139b36282a22d727e920735f8b
qemu: prepare secret for the graphics upfront

Instead of hardcoding the TLS creds alias in
qemuBuildGraphicsVNCCommandLine, store it
in the domain private data.

Given that we only support one VNC graphics
and thus have only one alias per-domain,
this is overengineered, but it will allow us
to prepare the secret upfront when we start
supporting encrypted server TLS keys.

Note that the alias is not formatted anywhere
since we won't need to access it after domain
startup.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c