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:
Peter Krempa 2017-04-25 15:17:34 +02:00
parent 5ade0ff905
commit 1730cdc665

View File

@ -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);