File 65fab900-libxl-fix-driver-reload.patch of Package libvirt
xxxxxxxxxx
1
commit 65fab900c5206700f728de5dec72886832b5328f
2
Author: Jim Fehlig <jfehlig@suse.com>
3
Date: Mon Sep 13 16:04:41 2021 -0600
4
5
libxl: Fix driver reload
6
7
On reload, the libxl driver calls virDomainObjListLoadAllConfigs to load
8
all configs from /etc/libvirt/libxl/ but incorrectly passes 'true' for
9
the liveStatus parameter, resulting in error messages such as
10
11
libvirtd[21053]: XML error: unexpected root element <domain>, expecting <domstatus>
12
libvirtd[21053]: Failed to load config for domain 'sles15sp3'
13
14
Fix by not requesting live status when re-reading the persistent VM config
15
files.
16
17
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
18
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
19
20
Index: libvirt-7.1.0/src/libxl/libxl_driver.c
21
===================================================================
22
--- libvirt-7.1.0.orig/src/libxl/libxl_driver.c
23
+++ libvirt-7.1.0/src/libxl/libxl_driver.c
24
25
virDomainObjListLoadAllConfigs(libxl_driver->domains,
26
cfg->configDir,
27
cfg->autostartDir,
28
- true,
29
+ false,
30
libxl_driver->xmlopt,
31
NULL, libxl_driver);
32
33