[libvirt] [PATCH 1/5] qemu: Move simplification variable to begining of the function

Martin Kletzander mkletzan at redhat.com
Thu Oct 1 12:10:00 UTC 2015


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 src/qemu/qemu_command.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index bb1835c2f5f1..f303a4b5bd1e 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -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)) {
-- 
2.6.0




More information about the libvir-list mailing list