mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: process: Clean automatic NUMA/cpu pinning information on shutdown
Clean the stale data after shutting down the VM. Otherwise the data would be leaked on next VM start. This happens due to the fact that the private data object is not freed on destroy of the VM.
This commit is contained in:
parent
5ade0ff905
commit
1730cdc665
@ -6437,6 +6437,12 @@ void qemuProcessStop(virQEMUDriverPtr driver,
|
||||
priv->qemuCaps = NULL;
|
||||
VIR_FREE(priv->pidfile);
|
||||
|
||||
/* remove automatic pinning data */
|
||||
virBitmapFree(priv->autoNodeset);
|
||||
priv->autoNodeset = NULL;
|
||||
virBitmapFree(priv->autoCpuset);
|
||||
priv->autoCpuset = NULL;
|
||||
|
||||
/* The "release" hook cleans up additional resources */
|
||||
if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
|
||||
char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user