Received: from eggs.gnu.org ([2001:4830:134:3::10]:60030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXeUs-0002CX-I4 for qemu-devel@nongnu.org; Mon, 16 Mar 2015 19:32:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXeUm-0004cO-3F for qemu-devel@nongnu.org; Mon, 16 Mar 2015 19:32:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:41601 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXeUl-0004bw-Si for qemu-devel@nongnu.org; Mon, 16 Mar 2015 19:32:28 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 17 Mar 2015 00:32:21 +0100 Message-Id: <1426548742-17376-2-git-send-email-afaerber@suse.de> In-Reply-To: <1426548742-17376-1-git-send-email-afaerber@suse.de> References: <1426548742-17376-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for-2.3 1/2] pc: Suppress APIC ID compatibility warning for QTest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , "Michael S. Tsirkin" , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Eduardo Habkost This avoids cluttering GTester output with irrelevant warnings. Cc: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- hw/i386/pc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index c756404..4b46c29 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -45,6 +45,7 @@ #include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/kvm.h" +#include "sysemu/qtest.h" #include "kvm_i386.h" #include "hw/xen/xen.h" #include "sysemu/block-backend.h" @@ -653,7 +654,7 @@ static uint32_t x86_cpu_apic_id_from_index(unsigned i= nt cpu_index) =20 correct_id =3D x86_apicid_from_cpu_idx(smp_cores, smp_threads, cpu_i= ndex); if (compat_apic_id_mode) { - if (cpu_index !=3D correct_id && !warned) { + if (cpu_index !=3D correct_id && !warned && !qtest_enabled()) { error_report("APIC IDs set in compatibility mode, " "CPU topology won't match the configuration"); warned =3D true; --=20 2.1.4