aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2017-05-18 10:09:31 +0200
committerEduardo Habkost <ehabkost@redhat.com>2017-05-22 14:24:52 -0300
commitc6ff347c8078bb86f75d38955641cb73e9d5b309 (patch)
tree49015f684397b20431bfca96359067be13e10be9 /hw/core
parent56821559f0ba682fe6b367815572e6f974d329ab (diff)
downloadqemu-c6ff347c8078bb86f75d38955641cb73e9d5b309.zip
qemu-c6ff347c8078bb86f75d38955641cb73e9d5b309.tar.gz
qemu-c6ff347c8078bb86f75d38955641cb73e9d5b309.tar.bz2
numa: Silence incomplete mapping warning under qtest
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>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/machine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index fd6a436..3adebf1 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -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 "