mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Minimalize global driver accesses
Whilst working on another issue, I've noticed that in some functions we have a local @driver variable among with access to global @qemu_driver variable. This makes no sense. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
97338eaa7b
commit
65462b2944
@ -3835,7 +3835,7 @@ qemuDomainScreenshot(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
unlink_tmp = true;
|
unlink_tmp = true;
|
||||||
|
|
||||||
virSecurityManagerSetSavedStateLabel(qemu_driver->securityManager, vm->def, tmp);
|
virSecurityManagerSetSavedStateLabel(driver->securityManager, vm->def, tmp);
|
||||||
|
|
||||||
qemuDomainObjEnterMonitor(driver, vm);
|
qemuDomainObjEnterMonitor(driver, vm);
|
||||||
if (qemuMonitorScreendump(priv->mon, tmp) < 0) {
|
if (qemuMonitorScreendump(priv->mon, tmp) < 0) {
|
||||||
@ -11460,7 +11460,7 @@ qemuDomainMemoryPeek(virDomainPtr dom,
|
|||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
virSecurityManagerSetSavedStateLabel(qemu_driver->securityManager, vm->def, tmp);
|
virSecurityManagerSetSavedStateLabel(driver->securityManager, vm->def, tmp);
|
||||||
|
|
||||||
priv = vm->privateData;
|
priv = vm->privateData;
|
||||||
qemuDomainObjEnterMonitor(driver, vm);
|
qemuDomainObjEnterMonitor(driver, vm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user