Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
CC: Markus Armbruster <armbru@redhat.com>
---
hw/core/machine.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 2e91aa9..21ebef8 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)
{
@@ -732,7 +733,7 @@ static void machine_numa_finish_init(MachineState *machine)
}
}
}
- 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 "
--
2.7.4
On Thu, May 18, 2017 at 10:09:31AM +0200, Igor Mammedov wrote:
> Suggested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Where exactly is the test code that triggers those messages and
requires this patch? I would like to document that in the commit
message.
> ---
> CC: Markus Armbruster <armbru@redhat.com>
>
> ---
> hw/core/machine.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/core/machine.c b/hw/core/machine.c
> index 2e91aa9..21ebef8 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)
> {
> @@ -732,7 +733,7 @@ static void machine_numa_finish_init(MachineState *machine)
> }
> }
> }
> - 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 "
> --
> 2.7.4
>
--
Eduardo
On Thu, May 18, 2017 at 7:20 PM, Eduardo Habkost <ehabkost@redhat.com> wrote: > On Thu, May 18, 2017 at 10:09:31AM +0200, Igor Mammedov wrote: >> Suggested-by: Markus Armbruster <armbru@redhat.com> >> Signed-off-by: Igor Mammedov <imammedo@redhat.com> > > Where exactly is the test code that triggers those messages and > requires this patch? I would like to document that in the commit > message. $ make V=1 check TEST: tests/numa-test... (pid=30376) /x86_64/numa/mon/default: OK /x86_64/numa/mon/cpus/explicit: OK /x86_64/numa/mon/cpus/partial: qemu-system-x86_64: warning: CPU(s) not present in any NUMA nodes: CPU 2 [socket-id: 2, core-id: 0, thread-id: 0], CPU 3 [socket-id: 3, core-id: 0, thread-id: 0], CPU 6 [socket-id: 6, core-id: 0, thread-id: 0], CPU 7 [socket-id: 7, core-id: 0, thread-id: 0] qemu-system-x86_64: warning: All CPU(s) up to maxcpus should be described in NUMA config, ability to start up with partial NUMA mappings is obsoleted and will be removed in future OK
On Thu, 18 May 2017 15:20:39 -0300
Eduardo Habkost <ehabkost@redhat.com> wrote:
> On Thu, May 18, 2017 at 10:09:31AM +0200, Igor Mammedov wrote:
> > Suggested-by: Markus Armbruster <armbru@redhat.com>
> > Signed-off-by: Igor Mammedov <imammedo@redhat.com>
>
> Where exactly is the test code that triggers those messages and
> requires this patch? I would like to document that in the commit
> message.
ok, I'll mention test case in commit message on respin
> > ---
> > CC: Markus Armbruster <armbru@redhat.com>
> >
> > ---
> > hw/core/machine.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/hw/core/machine.c b/hw/core/machine.c
> > index 2e91aa9..21ebef8 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)
> > {
> > @@ -732,7 +733,7 @@ static void machine_numa_finish_init(MachineState *machine)
> > }
> > }
> > }
> > - 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 "
> > --
> > 2.7.4
> >
>
On Mon, May 22, 2017 at 09:58:36AM +0200, Igor Mammedov wrote: > On Thu, 18 May 2017 15:20:39 -0300 > Eduardo Habkost <ehabkost@redhat.com> wrote: > > > On Thu, May 18, 2017 at 10:09:31AM +0200, Igor Mammedov wrote: > > > Suggested-by: Markus Armbruster <armbru@redhat.com> > > > Signed-off-by: Igor Mammedov <imammedo@redhat.com> > > > > Where exactly is the test code that triggers those messages and > > requires this patch? I would like to document that in the commit > > message. > > ok, I'll mention test case in commit message on respin I will apply this version, and add "Silence warnings triggered by the /numa/mon/cpus/partial test case" to the commit message. I want to merge it as soon as possible, as the warnings are confusing people. -- Eduardo
© 2016 - 2026 Red Hat, Inc.