]> xenbits.xensource.com Git - libvirt.git/commit
libvirt: Introduce virDomainGraphicsReload API
authorZheng Yan <yanzheng759@huawei.com>
Tue, 11 May 2021 14:05:20 +0000 (22:05 +0800)
committerJán Tomko <jtomko@redhat.com>
Fri, 8 Mar 2024 16:00:15 +0000 (17:00 +0100)
commitb25b071c7551495882cb8970bccd3e31d16b3667
treec6854150ca096fa59b3bef118ae439d8fe7a678b
parentbec963f878202b373bfd8af81bacf0d6913af678
libvirt: Introduce virDomainGraphicsReload API

The new virDomainGraphicsReload API is used to make the domain reload
its certificates without restart, and avoid service interruption.

Currently, only QEMU VNC TLS certificates are supported, but
flags are also reserved for subsequent scenarios.

To reload QEMU VNC TLS certificates as an example, we can call:

  virDomainGraphicsReload(domain, 0, 0);

Then the specified QMP message would be send to QEMU:
{"execute": "display-reload", "arguments":{"type": "vnc", "tls-certs": true}}

Signed-off-by: Zheng Yan <yanzheng759@huawei.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-domain.h
src/driver-hypervisor.h
src/libvirt-domain.c
src/libvirt_public.syms