numa: Silence incomplete mapping warning under qtest
authorIgor Mammedov <imammedo@redhat.com>
Thu, 18 May 2017 08:09:31 +0000 (10:09 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 22 May 2017 17:24:52 +0000 (14:24 -0300)
Silence "make check" warnings triggered by the numa/mon/cpus/partial
test case.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1495094971-177754-4-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/machine.c

index fd6a4360642fd7eb112c6e2474b48554ab58b1db..3adebf14c46f94e818b9d5dd72b480fe16619648 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/error-report.h"
 #include "qemu/cutils.h"
 #include "sysemu/numa.h"
+#include "sysemu/qtest.h"
 
 static char *machine_get_accel(Object *obj, Error **errp)
 {
@@ -722,7 +723,7 @@ static void machine_numa_validate(MachineState *machine)
             g_free(cpu_str);
         }
     }
-    if (s->len) {
+    if (s->len && !qtest_enabled()) {
         error_report("warning: CPU(s) not present in any NUMA nodes: %s",
                      s->str);
         error_report("warning: All CPU(s) up to maxcpus should be described "