mirror of https://gitee.com/openkylin/libvirt.git
qemu-conf: add dbusStateDir
Location of DBus daemon state configuration, socket, pid... Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6f3bc53407
commit
0e50ddc025
|
@ -227,6 +227,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged,
|
|||
cfg->configDir = g_strdup_printf("%s/qemu", cfg->configBaseDir);
|
||||
cfg->autostartDir = g_strdup_printf("%s/qemu/autostart", cfg->configBaseDir);
|
||||
cfg->slirpStateDir = g_strdup_printf("%s/slirp", cfg->stateDir);
|
||||
cfg->dbusStateDir = g_strdup_printf("%s/dbus", cfg->stateDir);
|
||||
|
||||
/* Set the default directory to find TLS X.509 certificates.
|
||||
* This will then be used as a fallback if the service specific
|
||||
|
@ -311,6 +312,7 @@ static void virQEMUDriverConfigDispose(void *obj)
|
|||
VIR_FREE(cfg->stateDir);
|
||||
VIR_FREE(cfg->swtpmStateDir);
|
||||
VIR_FREE(cfg->slirpStateDir);
|
||||
VIR_FREE(cfg->dbusStateDir);
|
||||
|
||||
VIR_FREE(cfg->libDir);
|
||||
VIR_FREE(cfg->cacheDir);
|
||||
|
|
|
@ -99,6 +99,7 @@ struct _virQEMUDriverConfig {
|
|||
char *stateDir;
|
||||
char *swtpmStateDir;
|
||||
char *slirpStateDir;
|
||||
char *dbusStateDir;
|
||||
/* These two directories are ones QEMU processes use (so must match
|
||||
* the QEMU user/group */
|
||||
char *libDir;
|
||||
|
|
Loading…
Reference in New Issue