qemu: Sort the numa params only when it affects the live config

As the next boot doesn't have to worry about the previous numa
params setting (there is no).
This commit is contained in:
Osier Yang 2012-08-29 14:46:06 +08:00
parent d0c0e79ac6
commit 20b780aec9

View File

@ -7179,6 +7179,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
goto cleanup;
}
if (flags & VIR_DOMAIN_AFFECT_LIVE) {
/* Get current swap hard limit */
rc = virCgroupGetMemSwapHardLimit(group, &val);
if (rc != 0) {
@ -7207,6 +7208,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
}
}
}
}
ret = 0;
for (i = 0; i < nparams; i++) {