提交 04b57b4a 编写于 作者: M Martin Kletzander

qemu: Move simplification variable to begining of the function

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 37e85cff
......@@ -5052,6 +5052,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
virBitmapPtr nodemask = NULL;
int ret = -1;
virJSONValuePtr props = NULL;
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
*backendProps = NULL;
*backendType = NULL;
......@@ -5204,7 +5205,6 @@ qemuBuildMemoryBackendStr(unsigned long long size,
}
if (!hugepage && !pagesize) {
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
if ((userNodeset || nodeSpecified || force) &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_RAM)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册