mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 10:25:16 +00:00
qemu: don't restore state label twice
Otherwise, if something like doStopVcpus fails after the first restore, a second restore is attempted and throws a useless warning. * src/qemu/qemu_driver.c (qemudDomainSaveFlag): Avoid second restore of state label.
This commit is contained in:
parent
4591df766d
commit
96d567862a
@ -2044,6 +2044,7 @@ static int qemudDomainSaveFlag(struct qemud_driver *driver, virDomainPtr dom,
|
|||||||
virSecurityManagerRestoreSavedStateLabel(driver->securityManager,
|
virSecurityManagerRestoreSavedStateLabel(driver->securityManager,
|
||||||
vm, path) < 0)
|
vm, path) < 0)
|
||||||
VIR_WARN("failed to restore save state label on %s", path);
|
VIR_WARN("failed to restore save state label on %s", path);
|
||||||
|
bypassSecurityDriver = true;
|
||||||
|
|
||||||
if (cgroup != NULL) {
|
if (cgroup != NULL) {
|
||||||
rc = virCgroupDenyDevicePath(cgroup, path,
|
rc = virCgroupDenyDevicePath(cgroup, path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user